.Net compiled dll not working on another machine

3 vues (au cours des 30 derniers jours)
OLeg
OLeg le 21 Août 2012
Hi I have this web app that uses Matlab generated .Net dll, it works perfectly on my Win8 64 bit development machine, but when I move my project to Windows 2008 Server 64bit box. It breaks. I am using MCR Installer 7.16 that was created with the R2011b and installed it on deployment machine. I get following error:
2012-08-21 12:26:09,977 [6] ERROR System.TypeInitializationException: The type initializer for 'MathWorks.MATLAB.NET.Arrays.MWNumericArray' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MathWorks.MATLAB.NET.Arrays.MWArray' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MathWorks.MATLAB.NET.Utility.MWMCR' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'mclmcrrt7_16.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at MathWorks.MATLAB.NET.Utility.MWMCR.mclmcrInitialize2(Int32 primaryMode) at MathWorks.MATLAB.NET.Utility.MWMCR..cctor() --- End of inner exception stack trace --- at MathWorks.MATLAB.NET.Arrays.MWArray..cctor() --- End of inner exception stack trace --- at MathWorks.MATLAB.NET.Arrays.MWNumericArray.get__Inf() at MathWorks.MATLAB.NET.Arrays.MWNumericArray..cctor() --- End of inner exception stack trace --- at MathWorks.MATLAB.NET.Arrays.MWNumericArray..ctor(Array array)

Réponses (1)

Titus Edelhofer
Titus Edelhofer le 21 Août 2012
Hi,
the error message is saying that the MCR is not installed correctly, see e.g. http://www.mathworks.de/support/solutions/en/data/1-1IW46N/
Some things to check: is the PATH variable set correctly (see abov solution)? Did you take the 64Bit MCRInstaller from your 64Bit MATLAB installion (easy check: was it installed in "C:\Program files" or "C.\Program Files (x86)"?
Titus

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by