我正在将我的开发PC从Windows XP(Professional,SP3,x86)迁移到Windows 7(Professional,SP1,x86)。我正在使用的应用程序的源在两台计算机上都完全相同,但在启动RDOSession时在Windows 7计算机上失败。意外的行为Windows 7上的Outlook兑换
// Initialize the session.
_session = new RDOSession(); // Throws exception...
_session.LogonExchangeMailbox("[email protected]", "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
很显然,我directy想想MAPI/CDO,所以我检查了广泛,既办公室尝试Win7的2007年和2010年也不过没有运气。我现在的配置如下:
- 的WinXP:VS2010SP1,officeless,但与Exchange MAPI和CDO 及赎回版本5.5.0.3218安装。
- Win7:VS2010SP1,无办公软件,但安装有Exchange MAPI和CDO和赎回版本 5.5.0.3218。
任何人都有线索?提前致谢!
您是否尝试过注册Redemption.dll? 'regsvr32.exe Redemption.dll' –
不,我没有,我假设安装Redemption就够了。我会马上尝试你的建议。 –
好的,我已经通过命令行尝试过了。它已成功注册,但例外情况仍不幸发生。 –