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

C

compassSoftware

I am trying to work on an application that uses a dll as a COM object.

I am coming in late to this project to administer/update the
application.

I notice in the References that a particular DLL is referenced as
"Interop.DLLName" and I have the original DLL file as just DLLName with
no Interop. My first question is why is the word "Interop" on the
beginning of the DLL name and how do you get it to that state?

The app is working ok in production, however I am trying to create a
testing environment where I can upgrade the product. The problem I am
having is when I try to access the DLL in code I receive an error
message "COM Object with CLSID {...} is either not valid or not
registered."

I have copied the DLL from the production environment so I am confused
as to why it is not working in the testing environment. I have loading
the DLL into the References section and I can view it in the object
browser.

Can anyone help find why I am receiving this error message?
 
R

Richard Blewett [DevelopMentor]

COM uses the registry to locate code. You need to make sure that the original COM dll is on the machine and is registered using

regsvr32.exe

The Interop.DLLName file is a generated wrapper that allows the COM code to be called from .NET.

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

I am trying to work on an application that uses a dll as a COM object.

I am coming in late to this project to administer/update the
application.

I notice in the References that a particular DLL is referenced as
"Interop.DLLName" and I have the original DLL file as just DLLName with
no Interop. My first question is why is the word "Interop" on the
beginning of the DLL name and how do you get it to that state?

The app is working ok in production, however I am trying to create a
testing environment where I can upgrade the product. The problem I am
having is when I try to access the DLL in code I receive an error
message "COM Object with CLSID {...} is either not valid or not
registered."

I have copied the DLL from the production environment so I am confused
as to why it is not working in the testing environment. I have loading
the DLL into the References section and I can view it in the object
browser.

Can anyone help find why I am receiving this error message?


[microsoft.public.dotnet.languages.csharp]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top