開発用 PC を Windows XP (Professional、SP3、x86) から Windows 7 (Professional、SP1、x86) に移行中です。私が取り組んでいるアプリケーションのソースは両方のマシンでまったく同じですが、RDOSession を開始するときに Windows 7 マシンで失敗します。
// 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 について直接考えているので、それを広範囲にチェックし、Office 2007 と 2010 の両方で Win7 も試しましたが、うまくいきませんでした。私の現在の構成は次のとおりです。
- WinXP: VS2010SP1、officeless、Exchange MAPI および CDO と Redemption バージョン 5.5.0.3218 がインストールされています。
- Win7: VS2010SP1、officeless、ただし Exchange MAPI と CDO および Redemption バージョン 5.5.0.3218 がインストールされています。
誰でも手がかりを得ましたか?前もって感謝します!