Windows 7上的Outlook Redemption出现意外行为
本文关键字:意外 Redemption 上的 Outlook Windows | 更新日期: 2023-09-27 18:28:14
我正在将我的开发pc从Windows XP(Professional、SP3、x86)迁移到Windows 7(Professional、SP1、x86)。我正在处理的应用程序的来源在两台机器上完全相同,但在启动RDOSession时,在Windows7机器上会失败。
// Initialize the session.
_session = new RDOSession(); // Throws exception...
_session.LogonExchangeMailbox("mailbox@mydomain.com", "mail.mydomain.com");
这段代码导致以下异常:
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
很明显,我直接想到了MAPI/CDO,所以我仔细检查了一下,并在Office2007和2010中尝试了Win7,但没有成功。我目前的配置如下:
- WinXP:VS2010SP1,无Office,但已安装Exchange MAPI和CDO和赎回版本5.5.0.3218
- Win7:VS2010SP1,无Office,但安装了Exchange MAPI、CDO和Redemption版本5.5.0.3218
有人知道线索吗?提前感谢!
错误为MAPI_E_NOT_ENOUGH_RESOURCES,这通常意味着MAPI系统无法初始化自身。您的代码在何时何地运行?