Unable to register dll using regsvr32:The module "*.dll" failed to load

viperchaos picture viperchaos · Dec 6, 2011 · Viewed 22.7k times · Source

There is a similar question from stackoverflow. But I didn't find that the answer is helpful. I also used Google searched the websites, I have watched here and here. I have tried the method they told to solve this problem but not got a satisfied answer.

My operating system is 32-bit Window 7. Noncircle.dll is generated by Matlab version 2010a in another machine which installed Matlab. I tried to add Noncircle.dll as a reference in a project written in C#(I didn't install Matlab on my computer), but Visual-Studio 2010 told me the error:

enter image description here

So I doubt that Noncircle.dll maybe have to be registered. So I put Noncircle.dll in C:\Windows\System32 and started Cmd.exe as a administrator and typed:

regsvr32 Noncircle.dll

Then I got an error:

"The module "Noncircle.dll" failed to load.Make sure the binary is sorted at the 
 specified  path or debug it to check for problems with the binary or depenedent 
 .DLL files.The specified module coudl not be found."

Could you give me some hints, Thanks in advance!

Updated on 2012/10/18

But if I have installed Matlab version 2010a on my machine, this problem is solved.

Answer

WhatEvil picture WhatEvil · Feb 26, 2014

I just had the same issue.

If you're running 64-bit Windows and you've placed the 32-bit DLL in Windows\System32\ then it'll give you this error.

Simply place the DLL into Windows\SysWOW64\ and register it from there.

Here's where I found the fix:

http://csi-windows.com/blog/all/73-windows-64-bit/378-fixing-qregsvr32-the-module-failed-to-load-the-specified-module-could-not-be-foundq