C# Matlab builder NE 2012A x64与2014B x64混合

C# Matlab builder NE 2012A x64与2014B x64混合,c#,matlab,matlab-compiler,C#,Matlab,Matlab Compiler,我正在尝试将我的系统从Matlab2012A x64转换为Matlab2014Bx64。然而,我得到了这个错误。我正在使用.NET4.5,VisualStudio2012+update 5 A first chance exception of type 'System.Exception' occurred in MWArray.dll Additional information: Start-up options discovered in multiple assembiles. 然后

我正在尝试将我的系统从Matlab2012A x64转换为Matlab2014Bx64。然而,我得到了这个错误。我正在使用.NET4.5,VisualStudio2012+update 5

A first chance exception of type 'System.Exception' occurred in MWArray.dll
Additional information: Start-up options discovered in multiple assembiles.
然后我点击F5,我得到:

A first chance exception of type 'System.TypeInitializationException' occurred in MWArray.dll
Additional information: The type initializer for 'MathWorks.MATLAB.NET.Utility.MWMCR' threw an exception.
A first chance exception of type 'System.TypeInitializationException' occurred in MWArray.dll
Additional information: The type initializer for 'MathWorks.MATLAB.NET.Arrays.MWArray' threw an exception.
我再次按F5,得到:

A first chance exception of type 'System.TypeInitializationException' occurred in MWArray.dll
Additional information: The type initializer for 'MathWorks.MATLAB.NET.Utility.MWMCR' threw an exception.
A first chance exception of type 'System.TypeInitializationException' occurred in MWArray.dll
Additional information: The type initializer for 'MathWorks.MATLAB.NET.Arrays.MWArray' threw an exception.
这是我的密码:

private static MWArray ConvertBlackLevelResultsToMWArray(BlackLevelData blackLevelData)
      {
          var blackLevelResultsGroupedbyExposure = from blResult in blackLevelData group blResult by blResult.ExposureTime;
          var exposuresCount = blackLevelResultsGroupedbyExposure.Count();
            var blackLevelCells = new MWCellArray(1, exposuresCount); //the exception is here
我使用.net reflector来检查其他DLL文件中的所有依赖项,它们都引用了正确的MWarray版本2.14.1.0

你能提出一个办法来找出我的问题吗


谢谢

您必须删除所有属性

[assembly: MathWorks.MATLAB.NET.Utility.MWMCROption ("- nojit")]

来自所有地方,都是为MCR 2012a添加的。

我竟然不记得这一点,真是疯了