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

1 Ansicht (letzte 30 Tage)
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?

Antworten (1)

Yuri Shirman
Yuri Shirman am 21 Okt. 2014
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?

Kategorien

Mehr zu Deploy to .NET Applications Using MWArray API finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by