Question

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("mailbox@mydomain.com", "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!

Was it helpful?

Solution

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?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top