problem running .net code with matlab 2012b

조회 수: 3 (최근 30일)
jeet
jeet 2013년 5월 17일
I am trying to run a c sharp code with matlab 2012b. I am building he code with 'any cpu' option. It compiles fine but in execution I get the following error
"The assembly with display name 'MWArray' failed to load in the 'Load' binding context of the AppDomain with ID 1. The cause of the failure was: System.BadImageFormatException: Could not load file or assembly 'MWArray, Version=2.12.1.0, Culture=neutral, PublicKeyToken=e1d84a0da19db86f' or one of its dependencies. An attempt was made to load a program with an incorrect format."
In GAC I can see that the WMArray of same version is registered. I am working on windows 7 in 64bit env.
Please suggest where I might be missing.
Thanks
Jeet
  댓글 수: 2
jeet
jeet 2013년 5월 20일
Solved. VS 'Anc CPU' or mixed platform doesn't work if the matlab runtime is 64bit. The build has to be specific for x64.
Kaustubha Govind
Kaustubha Govind 2013년 5월 20일
Jeet: Please post your solution as an "Answer" so we know that this issue is resolved. Thanks!

댓글을 달려면 로그인하십시오.

답변 (1개)

cary li
cary li 2013년 6월 17일
have you found the solution to this problem? i have the same problem. can you post the solution? thank you very much.

카테고리

Help CenterFile Exchange에서 Deploy to C++ Applications Using mwArray API (C++03)에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by