Unable to create instance of MAPI Store Accessor on XP SP3

Add-in Express™ Support Service
That's what is more important than anything else

Unable to create instance of MAPI Store Accessor on XP SP3
 
Paul Cross


Guest


Hi,

I receive an opaque error when attempting to create an instance of the MAPI Store Accessor under XP SP3. I've created a simple console application that recreates the problem outside of my add-in.

The code is straightforward:

ADXMAPIStoreAccessor mapiStoreAccessor = new ADXMAPIStoreAccessor();

I receive an error message that states:

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'AddinExpress.MAPI, Version=2.3.223.2009, Culture=neutral, PublicKeyToken=4416dd98f0861965' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception fr om HRESULT: 0x800736B1)
File name: 'AddinExpress.MAPI, Version=2.3.223.2009, Culture=neutral, PublicKeyToken=4416dd98f0861965' ---> System.Runtime.InteropServices.COMException (0x800736B1): This application has failed to start because the application configuration
is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
at ConsoleApplication1.Program.Main()

I've ensured that Microsoft Visual C++ 2005 SP1 Redistributable Package (x86) has been installed from http://www.microsoft.com/downloads/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en

Anyone have any ideas? I'm getting no wh ere tracking this down. The code works fine on W7 and Vista...
Posted 05 Jun, 2010 17:04:21 Top
Paul Cross


Guest


The solution was to locate the correct version of the C++ redistributables.

The embedded manifest contained within AddinExpress.MAPI.dll version 2.3.223.2009 has an explicit reference to name="Microsoft.VC80.CRT" version="8.0.50727.4053". This file(s) is NOT contained in the link detailed above (Microsoft Visual C++ 2005 SP1 Redistributable Package (x86) - http://www.microsoft.com/downloads/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en ), but IS contained in the Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update available at http://www.microsoft.com/downloads/details.aspx?FamilyID=766A6AF7-EC73-40FF-B072-9112BAB119C2&displaylang=en

The AddinExpress.MAPI.dll documentation at http://www.add-in-express.com/products/mapi-store-events.php points to http://www.microsoft.com/downloads/details.aspx?familyid=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en which is incorrect.

Please let me know if I am correct in my assertion, and if so, please update the documentation.

Thanks,
Paul
Posted 06 Jun, 2010 04:57:54 Top
Eugene Astafiev


Guest


Hi Paul,

No, you aren't.

I have just tested that issue on a clean PC with Windows XP SP3. I created a simple windows forms application with mapi accessor component and added the following http://www.microsoft.com/downloads/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en to the installer. Then I tested it on the mentioned PC. I didn't meet anything strange on my way. It works as expected.

BTW Please note that the MAPI Store Accessor doesn't use ATL.
Posted 07 Jun, 2010 10:35:04 Top
Paul Cross


Guest


Hi Eugene,

Thanks for your response. However, I'm afraid I disagree! :-)

I'd love to demonstrate the issue to you. Would you be willing to do a remote TeamViewer session? I am a paid up customer..

Paul
Posted 08 Jun, 2010 09:54:32 Top
Eugene Astafiev


Guest


Hi Paul,

Sure. Please send the required credentials to the support e-mail address.
Posted 08 Jun, 2010 09:58:56 Top
Paul Cross


Guest


Hi Eugene,

An email should be in your Inbox.

Paul
Posted 08 Jun, 2010 10:19:17 Top
Eugene Astafiev


Guest


Hi Paul,

Thank you for pointing me to the issue. I have corrected that build and sent you a download link by e-mail.
Posted 09 Jun, 2010 05:27:58 Top