regsvr32 fails on Windows Server 2003 - LoadLibaray ("my.dll") failed

Posted by John Mo on Server Fault See other posts from Server Fault or by John Mo
Published on 2010-05-04T16:56:43Z Indexed on 2010/05/04 17:08 UTC
Read the original article Hit count: 456

The DLL in question is a VB6 web class. When deploying, the old one needs to be unregistered and the new one registered. This has worked for many years but has failed now with the following error in a message box:

LoadLibrary("c:...\my.dll") failed - The filename, directory name, or volume label syntax is incorrect.

I don't think there's a problem with the DLL being (un)registered because it's failing to unregister the existing DLL that was at one time successfully registered. I don't think there's a filename or path problem. Regsvr32 is executed using a batch file where the full path to the DLL is specified. The path has not changed. The batch file has not changed. The DLL has not changed (at least not the old one I need to unregister).

It's a programming problem to me because I need to release an updated DLL, but I'm thinking it's maybe an admin problem best suited to the talents of the serverfault audience. I'm hoping somebody knows about a Windows Update or something that might hose regsvr32. Thank you.

© Server Fault or respective owner

Related posts about windows-server-2003

Related posts about regsvr32