How can I register a .Net dll in other machine  
Author Message
Gnanaprakash





PostPosted: Common Language Runtime, How can I register a .Net dll in other machine Top

Hi,

Developing Env: .NET Studio in C#, windows XP
target: a COM object used for excel user (RTD)


I have no problem to compile and run the project in my
machine. The excel is working great with RTD calls.

However, I got issues when I try to deploy it to another machine.
I use
regasm my.dll /tlb (or) regasm my.dll
gacutil -if my.dll or gacutil /i my.dll

The excel is not working with RTD calls.It's not invoking my dll (I had log file in my dll ).

I am not sure why it's not working in other machine by registering the above method.

Is there any way to register .NET dll and I can
can deploy it in other machine and let Excel users call it
directly (by RTD)

Thanks,

Gnanaprakash




.NET Development11  
 
 
RizwanSharp





PostPosted: Common Language Runtime, How can I register a .Net dll in other machine Top

COM DLLS are registered with regsvr33 command but not with gacutil, All you have to do is to install COM DLL using command line regsvr32 dllPathHere

or Programatically:

System.Diagnostics.Process.Start("regsvr32", pathHere);

or you can also addd COM DLL to your deployement project and set some proprty to register is as a COM component. (Sorry I dont exactly remember the name but you can check it in a minute hardly when creaitng a setup ptoject and adding dll to your installation Folder).

You would already be having Interop...... in you bin\Release folder that's are enough to deal with installed COM dll and provide you the interopability b/w 2.

Just try this.

I hope this will help.

Best Regards,

Rizwan aka RizwanSharp



 
 
Gnanaprakash





PostPosted: Common Language Runtime, How can I register a .Net dll in other machine Top

Thanks for your reply:

It's not an ordinary COM dll.It's a.Net Dll.

Regards,

Gnanaprakash


 
 
RizwanSharp





PostPosted: Common Language Runtime, How can I register a .Net dll in other machine Top

What error are you getting when running the application. May be you are missing some dependency to be also deployed on the client machine.

Can you please give some more information with error message etc.

Best Regards,

Rizwan aka RizwanSharp



 
 
Gnanaprakash





PostPosted: Common Language Runtime, How can I register a .Net dll in other machine Top

Hi,

I have C# project, in that properties->debug I have set "Start External program as Excel ".I was able build and run the application through source code and there is communication between my C# project and Excel.communication is done through dll which I load as Addins in Excel.

Now I want to deploy this dll and dependent dll in other machine.When register I couldn't find any error and there is no communication between them.(I have logfile inside my dll).

Regards,

Gnanaprakash