Class Library question

chris_cs

Member
Joined
May 23, 2007
Messages
14
Programming Experience
1-3
Hi,

I've created a simple class libary project with one function, and I wanted to stick the dll generated on another machine to be accessed in a ASP page.

When I try using regsvr32 on that machine to register the dll I get an error message saying:

The module was loaded but the entry-point DllRegisterServer was not found.

Is there anything else I have to do/set in order for this dll to be used on another machine?

Thanks in advance
 
You'll simply need to have the dll referenced in the ASP app & of course it'll need to be in the app's bin folder on the web server too.

If you're also using it in other projects you simply do the same with those projects as well.

For example:
Class Library Project 1:
-Produces XX.dll

Web Project 1
-References XX.dll
-Copy of XX.dll is in the project

WinForms Project 1
-References XX.dll
-Copy of XX.dll is in the project

WPF Project 1
-References XX.dll
-Copy of XX.dll is in the project
 
I appreciate I have to reference it in the ASP page.

The issue I'm having is copying the physical dll file to the server and trying to register it. I wondered if when I build the project the dll should be 'good to go', or whether there is anything else I have to do? I would have assumed I would be able to register the dll using regsvr32.
 
If it's a .Net dll then you shouldn't have to register it at all, just provide it with the asp application in the bin folder of the site. Is it a dll you made? or some com object?
 
It's just a simple dll. In that case I won't worry about registering it and just try referencing it in the page.

I'll come back if I need any more info. Thanks for the help!
 
Regsvr32 is a registration tool for COM libraries, .Net is not COM so this utility is not relevant for .Net.
.Net libraries are normally not registered, but simply placed in application folder, an application that references it automatically picks it up.
.Net libraries may be prepared and exported as COM and registered using Regasm tool, something that is required for interaction outside the .Net environment.

When you say ASP, do you actually mean "ASP" or ASP.Net ? This is a big difference since one is .Net and the other is not. I can't really advice about ASP, but likely this would require COM functionality.
 
Thanks for the info.

It's actually an ASP page. We have an old dll on our Intranet server that was created before my time, and it sits in c:\windows\system32 and I'm able to register it using regsvr32. I need to make some updates to a function that is called but I don't have the source code which is why I created a new dll. I specified the option for the dll to be COM accessible but I'm still not able to register it.
 
It's actually an ASP page. We have an old dll on our Intranet server that was created before my time,
It may also be a good idea to move on to ASP.Net for the intranet. Since all existing ASP pages can be added and used as is this is initially a quick process. Then you can rework page by page to ASP.Net, preferrably first use a standard .Net library and convert the pages that uses it.
 
Back
Top