필터 지우기
필터 지우기

"Failed to load MWArray..." during building a .NET component with Type-safe interface.

조회 수: 4 (최근 30일)
Bíró
Bíró 2013년 5월 7일
답변: Yuri Shirman 2014년 10월 21일
I tried to build the example funtion (AddOne) from the MATLAB builder NE guideline, but it threw the following exception:
Exception in thread "main" C:\Users\[...]\AppData\Local\Temp\build1336735937405390249.xml:19: Failed to load MWArray assembly. Please make sure 'MWArray,
Version=2.12.1.0, Culture=neutral, PublicKeyToken=e1d84a0da19db86f' is
installed in the GAC.
at tswrap.InterfaceValidator.LoadMWArrayAssembly()
at tswrap.InterfaceValidator.SearchForMCRVersion()
at tswrap.Program.Main(String[] argList)
at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:164)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
at com.mathworks.project.impl.engine.AntEntryPoint.main(AntEntryPoint.java:28)
I compiled the interface for exactly the same platform as the MATLAB (x86), the MWArray is in the GAC with the same properties. MATLAB and the Builder NE is R2012b.
Can anyone help me with this?

답변 (1개)

Yuri Shirman
Yuri Shirman 2014년 10월 21일
I am fighting the same problem with the same version of Matlab. On another computer I don't see this problem. I have already re-added to the GAC MWArray as well. Did anyone come out with any explanation?

카테고리

Help CenterFile Exchange에서 Deploy to .NET Applications Using MWArray API에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by