Invalid sender when sending a package from Outlook 2003 with an exchange mailbox

Sep 22, 2008 at 1:43 PM

Hi

We are trialing VelodocXP (version VelodocXP.1.1.0.0) and the Velodoc Outlook add-in for Office 2003 (version VelodocAddIn.1.0.0). We have out VelodocXP application up and running and all appears to wroking great. We configured the account settings for the outlook add-in it returns back a positive all is well when using the test button.

When we try to send the message we receive a cryptic message (below).

Error states:

username@domain.comx400:c=us;a= ;p=domain;o=location;s=userlastname;g=userfirstname; is not a valid sender.

the user exists in the web.config file on our VelodocXP server.

Has any one else experienced this? any help wuld be appreciated.

cheers

 

Coordinator
Sep 22, 2008 at 3:03 PM
Edited Sep 22, 2008 at 5:15 PM
Are you using Exchange mailboxes? Please describe your configuration.
Sep 22, 2008 at 7:36 PM
Hi

Yes we are using exchange mailboxes (we ar currently using exchange 2003) - we also used the cached exchange mode if this makes a difference, we are using kerberos/NTLML password authenication and the PC trying to connect is directly connected to the LAN - let me know if you any further details as it would be great to get this working to show the senior brass as the tool sounds slick and will fit into our workflows.

cheers
Coordinator
Sep 22, 2008 at 8:14 PM
Edited Sep 26, 2008 at 11:29 AM
Please give us a couple of days to setup an Exchange platform and test. I'll post an update at the end of the week.
Please also check the file dates in the archive to ensure that you have installed the July build and not the May build of the Velodoc Outlook Add-In.
Coordinator
Sep 24, 2008 at 6:19 PM
Edited Sep 30, 2008 at 11:17 AM
Hello,

I have:
  1. Downloaded the Windows Server 2003 + Exchange 2007 SP1 VHD available at http://www.microsoft.com/downloads/details.aspx?FamilyID=43621a8f-12fb-4e7c-bb38-1cbb6ef272c5&DisplayLang=en (I could not find an Exchange 2003 VHD);
  2. Changed the IP address to 192.168.0.18
  3. Installed Office 2003 Professional
  4. Executed windows update (several times up to the point where there was no more update required)
  5. Installed Velodoc XP Edition and the Velodoc Outlook Add-In.
Note that I had to fix a bug in Velodoc XP Edition which prevented the installation on a domain controller.

I have also:
  1. Configured Exchange with two mailboxes: "website@contoso.com" and "jsmith@contoso.com", related respectively to a "website" and "jsmith" NT account added to the active directory. I have also added an SMTP receive connector to authorize relay to the "website" account authenticating through NTLM.
  2. Configured the "VelodocXP" web application in IIS 6 to use a "VelodocXP" application pool executing under the identity of the "website" account, which I have added as member of the IIS_WPG local user group.
  3. Configured web.config with the following smtp settings:
                <smtp deliveryMethod="Network" from="website@contoso.com">
                          <network host="localhost" port="587" defaultCredentials="true" />
                </smtp>
  4. Configured web.config with the following user list in appSettings: jsmith@contoso.com 
  5. Configured Outllook to connect to the Exchange server as jsmith in cached exchange mode
  6. At this stage I have checked that I could successfully send and download files using the web interface of Velodoc XP Edition
  7. Configured the Outlook Add-In to use Velodoc XP with the following account settings:
    • Plug-in: Velodoc XP (via WCF)
    • Host: 192.168.0.18
    • Path: /VelodocXP
    • Email: jsmith@contoso.com (matches Outlook configuration)
    • Security code: 1234 (default)
  8. I can successfully send and receive files using the Outlook Add-in connected to Velodoc XP Edition web site.
I do not think there is a real difference from the Add-in point of view between Exchange 2003 and Exchange 2007: all interactions with Exchange occur through the Outlook API and MAPI, so only the version of Outlook should make a difference. Accordingly, I will need more information to help you solve this issue.

Also note that if you run the Outlook Add-In with DebugView which you can download from the Microsoft Sysinternals web site, you get a comprehensive trace of the code executing, which you can post here. This may help.
Oct 30, 2008 at 1:16 PM
Hi

Sorry for the long delay.  We are still experiencing this with one accout - we have tried this add in with three users in our organization.  Two of the users are able to send but one user is not.  As requested we have include the stack trace - hopefully this will help you determine the reason for the 400 message.  This user has a fully functioning exchange account.

cheers

----------------

00000000 7:05:32 AM [3528] ThreadLocalizer: Current thread UI locale is en-US  
00000001 7:05:32 AM [3528] ThreadLocalizer: Thread UI locale set to en-US  
00000002 7:05:32 AM [3528] WebDialogs String Table 
00000003 7:05:33 AM [3528] (21.64s) Debug: NewExplorer Created [Chrome.AddIn.Explorer_Created()]  
00000004 7:05:37 AM [3528] (04.51s)  Info: ***** 10/30/2008 7:05:37 AM Lookout 1.3.0.24057 Outlook 11.0.0.6568 (loglevel=Debug) [Chrome.AddIn.OpenLog()]  
00000006 7:05:38 AM [3528] (00.72s) Debug: Creating IndexerNotifyForm [Chrome.AddIn.StartChrome()]  
00000007 7:05:52 AM [3528] MessageInspector: Entering constructor  
00000008 7:05:52 AM [3528] MessageInspector: Opening new item  
00000009 7:05:57 AM [3528] MessageCommandBar: Adding command bar to inspector  
00000010 7:05:57 AM [3528] MessageCommandBar: Current thread locale is en-US  
00000011 7:05:57 AM [3528] MessageCommandBar: Setting icon command bar button package_send16  
00000012 7:05:57 AM [3528] MessageCommandBar: Clipboard data saved  
00000013 7:05:57 AM [3528] MessageCommandBar: Icon added to cache for button package_send16  
00000014 7:05:57 AM [3528] MessageCommandBar: Icon added to button package_send16  
00000015 7:05:58 AM [3528] MessageCommandBar: Command bar button created  
00000016 7:05:58 AM [3528] MessageCommandBar: Popup menu created  
00000017 7:05:58 AM [3528] MessageCommandBar: Setting icon command bar button package_edit16  
00000018 7:05:58 AM [3528] MessageCommandBar: Clipboard data saved  
00000019 7:05:58 AM [3528] MessageCommandBar: Icon added to cache for button package_edit16  
00000020 7:05:58 AM [3528] MessageCommandBar: Icon added to button package_edit16  
00000021 7:05:58 AM [3528] MessageCommandBar: Package edit button created  
00000022 7:05:58 AM [3528] MessageCommandBar: Setting icon command bar button account16  
00000023 7:05:58 AM [3528] MessageCommandBar: Clipboard data saved  
00000024 7:05:58 AM [3528] MessageCommandBar: Icon added to cache for button account16  
00000025 7:05:58 AM [3528] MessageCommandBar: Icon added to button account16  
00000026 7:05:58 AM [3528] MessageCommandBar: Settings button created  
00000027 7:05:58 AM [3528] MessageCommandBar: Setting icon command bar button options16  
00000028 7:05:58 AM [3528] MessageCommandBar: Clipboard data saved  
00000029 7:05:58 AM [3528] MessageCommandBar: Icon added to cache for button options16  
00000030 7:05:58 AM [3528] MessageCommandBar: Icon added to button options16  
00000031 7:05:58 AM [3528] MessageCommandBar: Options button created  
00000032 7:05:58 AM [3528] MessageCommandBar: Setting icon command bar button help16  
00000033 7:05:58 AM [3528] MessageCommandBar: Clipboard data saved  
00000034 7:05:58 AM [3528] MessageCommandBar: Icon added to cache for button help16  
00000035 7:05:58 AM [3528] MessageCommandBar: Icon added to button help16  
00000036 7:05:58 AM [3528] MessageCommandBar: Help button created  
00000037 7:05:58 AM [3528] MessageCommandBar: Setting icon command bar button tell16  
00000038 7:05:58 AM [3528] MessageCommandBar: Clipboard data saved  
00000039 7:05:58 AM [3528] MessageCommandBar: Icon added to cache for button tell16  
00000040 7:05:58 AM [3528] MessageCommandBar: Icon added to button tell16  
00000041 7:05:58 AM [3528] MessageCommandBar: Tell button created  
00000042 7:05:58 AM [3528] MessageCommandBar: About button created  
00000043 7:05:58 AM [3528] MessageCommandBar: Command bar added to inspector  
00000044 7:06:01 AM [3528] MessageInspector: Sending item  
00000045 7:06:01 AM [3528] TransferAgent: CreatePackage  
00000046 7:06:02 AM [3528] TransferPackage: Constructor  
00000047 7:06:02 AM [3528] TransferPackage: Package sent by  to   
00000048 7:06:05 AM [3528] TransferFile: Constructor  
00000049 7:06:05 AM [3528] TransferPackage: Constructor  
00000050 7:06:05 AM [3528] TransferPackage: Package sent by  to   
00000051 7:06:06 AM [3528] MAPIHelper: Sender is ccc@ccc.caX400:c=US;a= ;p=ccc;o=xxx;s=ccc;g=ccc  
00000052 7:06:06 AM [3528] MessageInspector: Send from ccc@ccc.caX400:c=US;a= ;p=ccc;o=xxx;s=ccc;g=ccc;  
00000053 7:06:06 AM [3528] MAPIHelper: Sender is ddd.ddd@ddd.ca  
00000054 7:06:06 AM [3528] MessageInspector: Send to ddd.ddd@ddd.ca  
00000055 7:06:06 AM [3528] MessageInspector: Send cc   
00000056 7:06:06 AM [3528] MessageInspector: Send bcc   
00000057 7:06:06 AM [3528] TransferAgent: GetDefaultAccountName  
00000058 7:06:06 AM [3528] TransferAgent: Initialize remoting  
00000059 7:06:06 AM [3528] RemotingConfigurator: Initializing remoting client (API)  
00000060 7:06:06 AM [3528] RemotingConfigurator: Searching executing processes for Memba.Transfer.Controller  
00000061 7:06:06 AM [3528] RemotingConfigurator: Process not found  
00000062 7:06:06 AM [3528] RemotingConfigurator: Start C:\Program Files\Memba\Velodoc\Outlook Add-In\Memba.Transfer.Controller.exe  
00000063 7:06:07 AM [3528] RemotingConfigurator: Remoting client (API) initialized for tcp://localhost:48888/RemotingFacade.rem  
00000064 7:06:07 AM [3528] TransferAgent: Remoting initialized  
00000065 7:06:08 AM [756] TransferPlugInManager: Loading plug-ins  
00000066 7:06:08 AM [756] TransferPlugInManager: Plug-in path is C:\Program Files\Memba\Velodoc\Outlook Add-In  
00000067 7:06:08 AM [756] TransferPlugInManager: Loading C:\Program Files\Memba\Velodoc\Outlook Add-In\Affirma.ThreeSharp.dll  
00000068 7:06:08 AM [756] TransferPlugInManager: Loading C:\Program Files\Memba\Velodoc\Outlook Add-In\ICSharpCode.SharpZipLib.dll  
00000069 7:06:08 AM [756] TransferPlugInManager: Loading C:\Program Files\Memba\Velodoc\Outlook Add-In\Memba.Transfer.AddIns.dll  
00000070 7:06:08 AM [756] TransferPlugInManager: Loading C:\Program Files\Memba\Velodoc\Outlook Add-In\Memba.Transfer.AddIns.Outlook2003.dll  
00000071 7:06:08 AM [756] TransferPlugInManager: Loading C:\Program Files\Memba\Velodoc\Outlook Add-In\Memba.Transfer.AddIns.Outlook2007.dll  
00000072 7:06:08 AM [756] TransferPlugInManager: Exception when loading C:\Program Files\Memba\Velodoc\Outlook Add-In\Memba.Transfer.AddIns.Outlook2007.dll  
00000073 7:06:08 AM [756] System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.  
00000074 7:06:08 AM [756]    at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)  
00000075 7:06:08 AM [756]    at System.Reflection.Assembly.GetTypes()  
00000076 7:06:08 AM [756]    at Memba.Transfer.PlugIns.TransferPlugInManager.LoadTransferPlugIns()  
00000077 7:06:08 AM [756] TransferPlugInManager: Loading C:\Program Files\Memba\Velodoc\Outlook Add-In\Memba.Transfer.ClientAPI.dll  
00000078 7:06:08 AM [756] TransferPlugInManager: Loading C:\Program Files\Memba\Velodoc\Outlook Add-In\Memba.Transfer.dll  
00000079 7:06:08 AM [756] TransferPlugInManager: Loading C:\Program Files\Memba\Velodoc\Outlook Add-In\Memba.Transfer.PlugIns.dll  
00000080 7:06:08 AM [756] TransferPlugInManager: Velodoc XP (via WCF) added to cache  
00000081 7:06:08 AM [756] TransferPlugInManager: UNC File Share added to cache  
00000082 7:06:08 AM [756] TransferPlugInManager: FTP (Any Server) added to cache  
00000083 7:06:08 AM [756] TransferPlugInManager: Velodoc Enterprise Edition added to cache  
00000084 7:06:08 AM [756] TransferPlugInManager: Amazon S3 added to cache  
00000085 7:06:08 AM [756] TransferPlugInManager: Microsoft BITS added to cache  
00000086 7:06:08 AM [756] TransferPlugInManager: Loading C:\Program Files\Memba\Velodoc\Outlook Add-In\Memba.Transfer.Preview.dll  
00000087 7:06:09 AM [756] TransferPlugInManager: Loading C:\Program Files\Memba\Velodoc\Outlook Add-In\SharpBITS.Base.dll  
00000088 7:06:09 AM [756] RemotingConfigurator: Initializing remoting host  
00000089 7:06:09 AM [756] RemotingConfigurator: Remoting host registered at C:\Program Files\Memba\Velodoc\Outlook Add-In\Memba.Transfer.Controller.exe  
00000090 7:06:09 AM [756] RemotingConfigurator: Remoting host (Controller) initialized on port 48888  
00000091 7:06:09 AM [756] RemotingFacade: Constructor  
00000092 7:06:09 AM [756] RemotingFacade: Get default account name - ccc
00000093 7:06:09 AM [3528] TransferAgent: GetAccount  
00000094 7:06:10 AM [3528] RemotingConfigurator: Pinging remoting host  
00000095 7:06:10 AM [3528] RemotingConfigurator: IP Address found at position 0  
00000096 7:06:10 AM [3528] RemotingConfigurator: Pinging 127.0.0.1:48888  
00000097 7:06:10 AM [3528] RemotingConfigurator: Host is active and responds to ping  
00000098 7:06:10 AM [756] RemotingFacade: Constructor  
00000099 7:06:10 AM [756] RemotingFacade: Get account for ccc  
00000100 7:06:10 AM [3528] TransferAgent: Constructor  
00000101 7:06:10 AM [3528] TransferAgent: Send  
00000102 7:06:10 AM [3528] RemotingConfigurator: Pinging remoting host  
00000103 7:06:10 AM [3528] RemotingConfigurator: IP Address found at position 0  
00000104 7:06:10 AM [3528] RemotingConfigurator: Pinging 127.0.0.1:48888  
00000105 7:06:10 AM [3528] RemotingConfigurator: Host is active and responds to ping  
00000106 7:06:10 AM [756] RemotingFacade: Constructor  
00000107 7:06:10 AM [756] RemotingFacade: Send package New Package with account ccc  
00000108 7:06:10 AM [756] TransferCommand: Entering Send  
00000109 7:06:10 AM [756] TransferCommand: Plug-in found  
00000110 7:06:10 AM [3528] System.NotSupportedException: "ccc@cc.cax400:c=us;a= ;p=ccc;o=xxx;s=ccc;g=ccc;" is not a valid sender.  
00000111 7:06:10 AM [3528]   
00000112 7:06:10 AM [3528] Server stack trace:   
00000113 7:06:10 AM [3528]    at Memba.Transfer.ClientAPI.TransferCommand.Send(ITransferAccount transferAccount, ITransferPackage transferPackage)  
00000114 7:06:10 AM [3528]    at Memba.Transfer.Remoting.RemotingFacade.Send(ITransferAccount account, ITransferPackage package)  
00000115 7:06:10 AM [3528]    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)  
00000116 7:06:10 AM [3528]    at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)  
00000117 7:06:10 AM [3528]    at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)  
00000118 7:06:10 AM [3528]   
00000119 7:06:10 AM [3528] Exception rethrown at [0]:   
00000120 7:06:10 AM [3528]    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)  
00000121 7:06:10 AM [3528]    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)  
00000122 7:06:10 AM [3528]    at Memba.Transfer.Remoting.RemotingFacade.Send(ITransferAccount account, ITransferPackage package)  
00000123 7:06:10 AM [3528]    at Memba.Transfer.ClientAPI.TransferAgent.Send(ITransferPackage& package)  
00000124 7:06:10 AM [3528]    at Memba.Transfer.AddIns.PackageEditorController.Send(String from, String to, String cc, String bcc, String subject, String body)  
00000125 7:06:10 AM [3528]    at Memba.Transfer.AddIns.MessageInspector._CurrentItem_Send(Boolean& cancel)  
00000126 7:06:38 AM [3528] APPMANAGER:  Checking for updates.  
Coordinator
Oct 31, 2008 at 6:18 PM
Edited Oct 31, 2008 at 8:04 PM
The interesting part is:

00000051 7:06:06 AM [3528] MAPIHelper: Sender is ccc@ccc.caX400:c=US;a= ;p=ccc;o=xxx;s=ccc;g=ccc  
00000052 7:06:06 AM [3528] MessageInspector: Send from ccc@ccc.caX400:c=US;a= ;p=ccc;o=xxx;s=ccc;g=ccc;  

Then when we check that we have a valid smtp address to send from, we raise a NoSupportedException

00000108 7:06:10 AM [756] TransferCommand: Entering Send  
00000109 7:06:10 AM [756] TransferCommand: Plug-in found  
00000110 7:06:10 AM [3528] System.NotSupportedException: "ccc@cc.cax400:c=us;a= ;p=ccc;o=xxx;s=ccc;g=ccc;" is not a valid sender.  

This should be very easy to fix. Unfortunately I cannot reproduce the defect in my environment (like on 2 of your user environments, it works as expected!).

Accordingly, I have attempted to fix the defect and added more traces just in case, but I cannot test in an environment which reproduces the bug. This means you will have to reinstall the add-in and send me a new more detailed trace if the defect is not solved. I will let you know when the new build is uploaded. Please let me know if you are happy with that.

I have created a new work item. Please continue the discussion at http://www.codeplex.com/velodocaddin/WorkItem/View.aspx?WorkItemId=2485.
Oct 31, 2008 at 9:31 PM
Hi

We have no problem testing the revised application

cheers