Trying to register a dll but getting error DllRegisterServer entry point was not found

jyothis picture jyothis · Jul 4, 2012 · Viewed 74.6k times · Source

I have a .net assembly dll which i am trying to register using regsvr32, but get the following error:

"dll loaded but DllRegisterServer entry point was not found "

getting this error while registering the other dlls also.

Answer

Brian Lyttle picture Brian Lyttle · Jul 6, 2012

There is a Microsoft KB article on regsvr32 that you should read. A DLL must be a COM library for it to be registered. This exposes the entry function (DllRegisterServer) noted in the error message. This might not be there is the DLL is not designed to be registered, or is "corrupt" in some way. You can find out if a function is exported using DLL Export Viewer.

It would be great if you could provide information on whether you have the source code for the DLLs and why you need to register them. If you have a plain Win32 DLL you can access functions by loading it with LoadLibrary from native code. You need to use P/Invoke from .NET code.