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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COM object with CLSID {...} is either not valid or not registered.

Status
Not open for further replies.

anacris

Programmer
Oct 7, 2003
7
US
Hi a have a COM dll made in C++ (I don't have the source code) I used tlbimp to create a managed .NET assembly dll... I reference this dll and import it with "using myDll" then I make an object (myDll.myDllClass dll=new myDllClass();) and then I can see the methods implemented on the dll... until here everything is fine... but when I run my project it gives the next error where I create the object (new):

COM object with CLSID {DAA0701E-C3E8-429A-9E3D-83121ED37223} is either not valid or not registered.

I did register the new COM using regasm... and I checked the registry and that key is registered... so I don't have a clue of what am I doing wrong...

I would appreciate any help... THANKS A LOT!!!
 
Is your app run and developed on the same machine (is the project stored locally)?

I don't know the specifics of your situation, but you can be lazy and just move the .dll in question to the bin folder or add the reference via Project->Add Reference to see if that handles the configuration issues for you.

Maybe that will help, maybe not.
 
Hi, yes I am working locally, and I do have the dll in my bin directory, and yes I have referenced it (the managed dll I created with tlbimp) actually I instantiate it and can see all methods implemented in the dll, I can even see it in the object browser! The problem is when I run my app, it throws the error:

COM object with CLSID {DAA0701E-C3E8-429A-9E3D-83121ED37223} is either not valid or not registered.

and I checked the registry and it is registered... so I dont know what else to do...

Anyways thanks a lot for giving ideas I appreciate it very much thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top