failed to load MWArray assembly in Deployment Tool - Builder
Show older comments
In the Deployment Tool in 32-bit MatLab, when Build is clicked it fails saying "Failed to load MWArray assembly. Please make sure 'MWArray, Version=2.11.1.0, Culture=neutral, PublicKeyToken=e1d84a0da19db86f' is installed in the GAC."
This only happens when, under Settings, "Type Safe API" is enabled. If I uncheck "Enable type safe API" and then Build it succeeds.
I'm following the MEF walkthrough in the User Guide for Matlab Builder NE. My development environment is 64-bit Windows 7 but the deployment environment will be 32-bit which is why we're using 32-bit Matlab. I have also set the projects for MEFHost, Contract, and Attribute to have an x86 CPU.
MWArray with the desired version number is in the GAC. I've tried running MCRInstaller.exe and then rebooting my machine but it still doesn't work.
Would appreciate any insights.
1 Comment
Michael Kaiser
on 26 Nov 2012
Exactly the same problem, with no solution yet
Answers (3)
Oliver
on 27 Mar 2012
0 votes
I've got exactly the same problem and no solution yet. My assumption is that ntswrap (which is called during the build process if "Enable type safe API" is checked) is looking for the 64 bit version of MWArray.
Anybody any ideas?
Pierre Bulens
on 13 Dec 2012
0 votes
In the Deployment Tool in 32-bit MatLab, when Build is clicked it fails saying "Failed to load MWArray assembly. Please make sure 'MWArray, Version=2.11.1.0, Culture=neutral, PublicKeyToken=e1d84a0da19db86f' is installed in the GAC."
This only happens when, under Settings, "Type Safe API" is enabled. If I uncheck "Enable type safe API" and then Build it succeeds.
I'm following the MEF walkthrough in the User Guide for Matlab Builder NE. My development environment is 64-bit Windows 7 but the deployment environment will be 32-bit which is why we're using 32-bit Matlab. I have also set the projects for MEFHost, Contract, and Attribute to have an x86 CPU.
MWArray with the desired version number is in the GAC. I've tried running MCRInstaller.exe and then rebooting my machine but it still doesn't work.
Would appreciate any insights.
Pierre Bulens
on 13 Dec 2012
0 votes
We had a similar problem. The namespace in the projects settings (TypeSafe API tab) was like Linear.Matlab.something and the build failed. When using linear_matlab_something as namespace (no dots), the duild did succeed.
Categories
Find more on Deploy to C++ Applications Using mwArray API (C++03) in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!