Link to home
Start Free TrialLog in
Avatar of mpdillon
mpdillon

asked on

How to register a DLL on a Windows 2003 web server

I used Visual Studio 2008 (Visual Basic) to create a DLL. The DLL will be used on a Web Server by a PHP web site.
I believe I need to register the DLL using the command,
Regasm.exe WebToMac.Dll /tlb:WebToMac.tlb /codebase
I would normally run this command from the directory where the DLL is physically located. The web developers have placed the DLL in D:\InetPub\wwwroot-dev\mpats-dll folder.
Using the command prompt I can access D:\Inetpub. However, I cannot use the command, "cd wwwroot-dev" to get to that direcotry.
Could this be a virtual directory? And if so, How do I register my DLL?
I am logged in as Domain Administrator.
Thanks in advance for your help.

pat
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mpdillon
mpdillon

ASKER

Kaufmed
Yes. The DLL is exposed as a COm object.

KCTS
Because it is exposed as a Com object, I need to use regasm. Regsvr32 has not worked for me in the past.

JamesBurger:
I do not know which folder I woudl put the DLL into for the PHP server to be able ot use it.
I can probably find a post on how to get the DLL into GAC (I may have done that before). But I only know how to use RegAsm to define the Codebase as shown in my example above. Could you point me to a tutorial on how to do what you suggested in your #3 response?

Thanks,
pat
Sorry, did not see "PHP server" in the original post. You are out of my league. Do not even know if your server knows enough about .NET to be able to use it.

To install into the GAC, you need to call GacUtil, that installs with the framework, but  requires administrator privileges.

For #3, you enter a Codebase entry in the assembly configuration file. It tells the assembly where to get the dll. I do not have the proper syntax since I have used that only once, for a customer many years ago, and I do not have the code anymore. Should be easy to find with a little search.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The IT consultant restarted the server and I was able to register the DLL using RegAsm.exe.
Thanks,
pat