failed to load MWArray assembly in Deployment Tool - Builder
显示 更早的评论
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 个评论
Michael Kaiser
2012-11-26
Exactly the same problem, with no solution yet
回答(3 个)
Oliver
2012-3-27
0 个投票
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
2012-12-13
0 个投票
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
2012-12-13
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 C Shared Library Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!