MWMCR Type Initialization exception

Hi, I have created a .NET DLL using Matlab build and assembly type as .NET Assembly. Then from Console application I am trying to refer the .NET DLL object as: MLTestClass obj = null; obj = new MLTestClass();
At the second line I get 'Type Initializer Exception of MWMCR' Exeption : Com.Demo.MLTestClass..ctor()...
I have deployed MWArray using GACUTIL.
Thanking you in advance!

4 个评论

Have you already installed the MCR?
Also, make sure that the $mcrroot/runtime/$arch/ folder has been added to the system path.
Hi Govind,
Yes, I have installed MCR. the Path $mcrroot/runtime/$arch should be added to PATH environment variable?
Its still the same problem

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Startup and Shutdown 的更多信息

提问:

2011-11-16

Community Treasure Hunt

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

Start Hunting!

Translated by