0
votes

I'm in the process of migrating my development pc from Windows XP (Professional, SP3, x86) to Windows 7 (Professional, SP1, x86). The source of the application I'm working on is exactly the same on both machines, but fails on the Windows 7 machine when initiating an RDOSession.

// Initialize the session.
_session = new RDOSession(); // Throws exception...
_session.LogonExchangeMailbox("[email protected]", "mail.mydomain.com");

This piece of code results in the following exception:

System.Runtime.InteropServices.COMException was caught
  Message=Creating an instance of the COM component with CLSID {29AB7A12-B531-450E-8F7A-EA94C2F3C05F} from the IClassFactory failed due to the following error: 8004010e.
  Source=mscorlib
  ErrorCode=-2147221234
  StackTrace:
       at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
       at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)
       at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
       at System.Activator.CreateInstance(Type type, Boolean nonPublic)
       at System.Activator.CreateInstance(Type type)
       at (...).DataAccess.ExchangeManager..ctor(ExchangeConfigurationSettings configurationSettings) in D:\Development\WIP\(...)\DataAccess\Exchange\ExchangeManager.cs:line 57

Obviously I directy think about MAPI/CDO, so I checked that extensively and tried Win7 with both Office 2007 and 2010 too, but no luck. My current configuration is as follows:

  • WinXP: VS2010SP1, officeless, but installed with Exchange MAPI and CDO and Redemption version 5.5.0.3218.
  • Win7: VS2010SP1, officeless, but installed with Exchange MAPI and CDO and Redemption version 5.5.0.3218.

Anyone got a clue? Thanks in advance!

1
Have you tried registering the Redemption.dll? regsvr32.exe Redemption.dllEd W
No I did not, I assumed installing Redemption was enough. I will try your suggestion right away.Herman Cordes
Allright, I've tried it via the command line. It registered successfully, but the exception still occurs unfortunately.Herman Cordes

1 Answers

1
votes

The error is MAPI_E_NOT_ENOUGH_RESOURCES, which usually means that MAPI system could not initialize itself. When and where does your code run?