I Have a project with a reference to: AdminTypeLibrary in Visual Studio 2005, that provide the following class interface:
[CoClass(typeof(SystemClass))]
[Guid("35FC2357-811A-11D0-8A96-00805FC16077")]
public interface System : DIADSystem
{
}
When I try to create the object: System sys = new AdminTypeLibrary.System();
I got the following exception:
"Retrieving the COM class factory for component with CLSID {35FC2358-811A-11D0-8A96-00805FC16077} failed due to the following error: 80040154."
in default project configurations [AnyCPU] in my case this happened on a X64 machine. After investigation I have turned the project settings into X86 configuration and the exception has gone.
Trying to create group wise API objects will fail if your project' configurations [in VS2005] are different than X86.
No comments:
Post a Comment