MATLAB: Am I getting an error when using mwregsvr on a client machine when registering a dll made with MATLAB Builder EX Version 2.0 or MATLAB Builder NE Version 4.0 (R2011a)

builderdeployedexMATLAB Builder EXMATLAB Builder NEmcrmodulene

I have built a .dll using MATLAB Builder EX. Now I would like to use the dll on a computer that has only the MATLAB Runtime Component (MCR) When I register the dll on the client machine I get the error:
 
The specified module could not be found.
I am using mwregsvr to register the dll on the client machine. The dll was created using the Microsoft Visual C++ 2010 Express edition on a 32-bit Windows development machine.

Best Answer

The error "The specified module could not be found" is a nonspecific error that indicates that some content that the dll is dependant on could not be found.
One possible reason is that the Microsoft dlls associated with the compiler used are not found on the client machine. Try downloading the Redistributable Package for the compiler used on the development machine. For Microsoft Visual C++ 2010 Express edition on a 32-bit Windows machine you can download the Redistributable Package here:
<http://www.microsoft.com/download/en/details.aspx?id=5555>
If installing the Redistributables associated with the compiler does not resolve the issue then you may use the Dependency Walker Utility to help identify the exact module that is missing. Please see related solution.