您的位置:首页 > 编程语言 > MATLAB

[Matlab]未能加载文件或程序集“xx”或它的某一个依赖项。生成此程序集的运行时比当前加载的运行时新,无法加载此程序集。 Source: mscorlib HelpLink

2016-07-08 01:24 686 查看
问题描述:

在MATLAB2009a里尝试调用某大神给出的c# dll,报错如下:

>> NET.addAssembly(pfpath)

??? Message: 未能加载文件或程序集“QuantBox.CSharp2CTP.dll”或它的某一个依赖项。生成此程序集的运行时比当前加载的运行时新,无法加载此程序集。

Source: mscorlib

HelpLink:

百度Bing无果,尝试查找英文报错。

Could not load file or assembly 'xxxx' or one of its dependencies. This assembly is built by a runtime newer than the currently
loaded runtime and cannot be loaded. Source: mscorlib HelpLink.
http://cn.mathworks.com/matlabcentral/answers/12505-failed-to-load-a-net-assembly http://stackoverflow.com/questions/6842697/matlab-failed-to-load-a-net-assembly
This bug has been fixed in Release 2011a (R2011a). For previous product releases, read below for any possible workarounds:

Currently, Microsoft .NET Framework 4.0 is not supported. Versions 2.0 and 3.5 are supported. When the documentation was written, .NET 4.0 had not been released yet, so "2.0 and above" meant 2.0 and 3.5.
看来还是要换版本啊。。。。

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: