Run Matlab 2019b Assembly within .Net Core 3.0 Application throws exception

1 回表示 (過去 30 日間)
Philipp Gun
Philipp Gun 2019 年 12 月 9 日
Hello,
i want to use the Matlab Runtime with a Compiler SDK Assembly within a .Net Core 3.0 Application.
I´m using the same .dll within a .Net Framework 4.6.2 Application and its working just fine.
Now when declaring a variable like:
var phi_ref = new MWNumericArray((double[])this.Inputs[0].Value);
The referenced MWArray.dll throws the following exception:
Message="The type initializer for 'MathWorks.MATLAB.NET.Utility.MWMCR' threw an exception."
Could not load type 'System.Web.UI.WebResourceAttribute' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Is this just a dependency problem or is a Matlab Assembly not compatible with Core 3.0?
Thanks in advance!

回答 (0 件)

カテゴリ

Help Center および File ExchangeDeploy to .NET Applications Using MWArray API についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by