I'm trying to register a COM DLL file on Windows Server 2008 R2. Here are the steps I took:
- Run
cmd
as administrator c:\windows\system32\regsvr32.exe c:\tempdl\temp12.dll
When I execute that command I get this error:
The module
temp12.dll
failed to load. Make sure the binary is stored at the specified path or debut it to check for problems with the binary or dependent.DLL
files. The specified module could not be found.
I was able to register the same DLL file on Windows 2000.
I also tried
c:\windows\syswow64\regsvr32 "c:\tempdl\temp12.dll"
And I got this error:
the module
c:\tempdl\temp12.dll
was loaded but the call toDllRegisterServer
failed with error code0x80040154
. For more information about this problem, search online using the error code as the search term
This is what has to occur.
You have to copy your DLL that you want to Register to: c:\windows\SysWOW64\
Then in the Run dialog, type this in:
C:\Windows\SysWOW64\regsvr32.exe c:\windows\system32\YourDLL.dll
and you will get the message:
You may need to install ATL if your COM objects use ATL, as described by this KB article:
http://support.microsoft.com/kb/201191
These libraries will probably have to be supplied by developers to ensure the correct version.