我正在將我的開發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就夠了。我會馬上嘗試你的建議。 –
好的,我已經通過命令行嘗試過了。它已成功註冊,但例外情況仍不幸發生。 –