How to fix System.Typ​eInitializ​ationExcep​tion coming very frequently in Windows server 2008 R2.

1 view (last 30 days)
The initializing exception is coming very frequent after we move our code from 32 bit machine to 64 bit. MATLAB Installation: MatlabCompilerRuntime-7.11 MatlabComponentRuntime-7.7 STACK TRACE:
System.TypeInitializationException: The type initializer for '<namespace>' threw an exception.
System.ApplicationException: The MCR instance could not be initialized at MathWorks.MATLAB.NET.Utility.MWMCR..ctor(String componentName, String rootData, Byte[]
publicEncryptionKey, Byte[] sessionEncryptionKey, String[] matlabPathEntries, String[] classPathEntries, String[] libPathEntries, String[] mcrApplicationOptions, String[] mcrRuntimeOptions, String prefDir, String[] mcrSetWarningState, String componentPath, Boolean isLibrary)
Please help to resolve this issue, I have verified all settings to confirm that installation is done properly.

Answers (0)

Community Treasure Hunt

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

Start Hunting!