Home
TeamSite
InteropServices.COMException : Retrieving the COM class factory ... failed
AdrianSpear
Hi,
VS 2010 Professional
NUnit (2.5.10.11092)
Resharper (5.1.1753.4)
I have an NUnit test which creates a connection to a worksite as a basic integration test as follows:
IManDMS manDms = new ManDMS();
When the unit test is run in the NUnit Gui it runs perfectly but if I try running it in Visual Studio under Resharper Test Runner or in a Microsoft Test Class I get the following exception:
System.Runtime.InteropServices.COMException : Retrieving the COM class factory for component with CLSID {FDD9199A-1BB4-4433-B9E1-D550D3118676} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
I checked the registry and the component with the CLSID above is not registered however I don't then understand why the NUnit Gui can succeed in that case?
Any help appreciated. Thanks.
Find more posts tagged with
Comments
archer9
Are you running on a 64bit platform? Is so, have you tried compiling your program as x86? I believe the iManage COM classes only support 32bit mode.
See the following post:
http://forums.asp.net/t/1119052.aspx
AdrianSpear
I think you're right - I just retried the unit tests using the x64 NUnit GUI and it failed to load the COM interop which tends to support your suggestion.
I'll try compiling for x86 and see if it resolves it.
Thanks.
AdrianSpear
Confirmed that resolved the issue.