Why 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)?
2 views (last 30 days)
Show older comments
MathWorks Support Team
on 6 Jul 2012
Edited: MathWorks Support Team
on 29 Apr 2021
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.
Accepted Answer
MathWorks Support Team
on 29 Apr 2021
Edited: MathWorks Support Team
on 29 Apr 2021
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.
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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Deploy to .NET Applications Using MATLAB Data API for .NET in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!