Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COM error

Status
Not open for further replies.

hapax

Programmer
Nov 10, 2006
105
0
0
US
I just got assigned to a new website that uses some COM for backend processing.

When I run the code locally on my PC, I get the following error when the code hits the point to instantiate one of the COM objects: “Retrieving the COM class factory for component with CLSID {6D7165D5-7BC5-46CF-A1DC-69CDAE4B81BE} failed due to the following error: 80040154.”

Any suggestions?

The DLL registers fine. I tried opening up the permissions on my PC but that didn't help. I'm a junior programmer and I don't know much about COM.
 
try :
COMObjectType _svr = (ICOMObjectType)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid("6D7165D5-7BC5-46CF-A1DC-69CDAE4B81BE")));

instead of
COMObjectType _svr = new COMObjectType();

Also, have you created the COM Server Object in the Component Services Control Panel? Remember, this object is running under the account that IIS is running, not yours.

This can be a very complicated issue and a little more info could be helpful.

For a little "weighty" reading, see
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top