Registering DLL error

User avatar
Jezza
5StarLounger
Posts: 847
Joined: 24 Jan 2010, 06:35
Location: A Magic Forest in Deepest, Darkest, Kent

Registering DLL error

Post by Jezza »

Hi there, this is all over the web but it seems for every question there is a different answer so I am at a loss. I have a bespoke written DLL that was happily residing on a Win2K, then Win2K3 server but due to an application upgrade we would like to re-use it.

I have attempted to register the DLL but am getting an error :
[RegSvr32]
The module
"c:\windows\sysWOW64\Jezza.dll" was loaded but the entry-point DllRegisterServer was not found"

Make sure that
"c:\windows\sysWOW64\Jezza.dll" is a valid DLL or OCX dile then try again.

I have tried it in both the system32 folder and sysWOW64 with the same error (apart from the path name)

Any ideas?
Jerry
I’ll be more enthusiastic about encouraging thinking outside the box when there’s evidence of any thinking going on inside it

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Registering DLL error

Post by HansV »

I'd place the DLL in the SYSWOW64 folder (I assume it's a 32-bit DLL)
Click the Start button.
Type cmd
You should see cmd.exe in the list of search results.
Right-click it and select "Run as Administrator".
Use CD to switch to the C:\Windows\SYSWOW64 folder.
Now try to register the DLL again.
Does that work?
Best wishes,
Hans

User avatar
Jezza
5StarLounger
Posts: 847
Joined: 24 Jan 2010, 06:35
Location: A Magic Forest in Deepest, Darkest, Kent

Re: Registering DLL error

Post by Jezza »

Sadly not, this method did work for another DLL I had
Jerry
I’ll be more enthusiastic about encouraging thinking outside the box when there’s evidence of any thinking going on inside it

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Registering DLL error

Post by HansV »

Sorry! I hope someone else will come up with a better suggestion.
Best wishes,
Hans

User avatar
Timelord
4StarLounger
Posts: 504
Joined: 23 Jul 2010, 18:36
Location: Westlake, OHIO

Re: Registering DLL error

Post by Timelord »

A couple of thoughts. These have assisted in solutions for me before:
Make sure that the dll is not locked
Is the dll dependant on another file?
Does the dll reuire an older .NET? I had trouble a while ago with something similar and found that while I had .net3.5 and 4.0 I also needed .net 2.0
Who will you Inspire today?

User avatar
Jezza
5StarLounger
Posts: 847
Joined: 24 Jan 2010, 06:35
Location: A Magic Forest in Deepest, Darkest, Kent

Re: Registering DLL error

Post by Jezza »

Hi Hans & Timelord, thanks for your replies. Sorry for the delay I saw Hans' reply via email but didn't pop back in to the Lounge due to other commitments.

In fact Timelord we have come to the same conclusion, .NET version! We discovered an old batch file that was referencing v1.1 so downloaded it and have come across a new issue that will require a recompile. We are doing that on Friday so will provide a conclusion or next set of wquestions then.
Jerry
I’ll be more enthusiastic about encouraging thinking outside the box when there’s evidence of any thinking going on inside it