Register COM Object for C#

T

TOI DAY

Hi All,

I did builded and created a VC++ 6.0 DLL.
Then call that DLL in my C# application. I work fine on my local
machine.

But when I take the DLL and my C# .EXE to other machine, when I run
it, it gives me this error message:

"COM Object with CLSID {75B55B-32-696B-41E2-9261 ....} is either not
valid or not registered.

How do I register for this dll on other machine.

Thanks in advance.

Tung Nguyen
 
A

Adam W Root

I'm guessing it didn't get registered as steve suggested. When you develop
objects in Visual Studio and build them, VS takes care of the registration.
So when you move the dll to another machine, pull up a command prompt and
do:

regsvr32 <path to .dll>

then try your c# app again.

Adam
 
D

Dang Tran

Hi Tung,

I believe that COM DLL is totally different from .NET DLL. .NET you just
simply copy the dll file with the application. However, you must register
Com Dll with the system before using it. I suggest that you should minimize
using Com Dll 'cause it's unsecured and may sometimes lead you to "Dll hell"
when your program grows.
Dang

PS: FYI -- Read articles about Working with Legacy Code and .NET Components
 
T

TOI DAY

Hi Adam,

I did use the regsvr32 to register my Interop.abc.dll file.
But it give me this message "the Interop.abc.dll file was loaded, but
DLLRegister Server entry point not found"

Do you know what I should do.

I try to use the regasm.exe to register the Interop.abc.dll file then
it register but my c# app still does not work.

Tung Nguyen
 

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