MATLAB Answers

0

Trouble initializing libraries required (matlab .net assembly,dll) by Builder NE. in Azure

Asked by Hong Boon Hao on 16 Oct 2019 at 9:39
Latest activity Commented on by Hong Boon Hao on 22 Oct 2019 at 3:13
I am using Matlab to build the .net assembly function in asp.net. It works perfectly in Visual Studio 2017 environment. After I deployed the .net application to Azure, the error shows "Trouble initializing libraries required by Builder NE."
I using Matlab R2013a 64 bit to build the assembly and included the MWArray.dll and Matlab function .dll in the bin folder of the /wwwroot folder in Azure. I also include the mclmcrrt8_1.dll in /bin too. Since I developed it in VS using 64 bit then I set the Azure target platform to 64bit also.
Stack Trace:
[Exception: Trouble initializing libraries required by Builder NE.
]
MathWorks.MATLAB.NET.Utility.MWMCR..cctor() +1579
[TypeInitializationException: The type initializer for 'MathWorks.MATLAB.NET.Utility.MWMCR' threw an exception.]
HandFootMouthDisease.hfmdPredictionGraph..cctor() +57
[TypeInitializationException: The type initializer for 'HandFootMouthDisease.hfmdPredictionGraph' threw an exception.]
HandFootMouthDisease.hfmdPredictionGraph..ctor() +0
OnlineCommunicableDiseaseMonitoring.Application_hfmd.PredictionGraph.btnOnClick_Generate(Object sender, EventArgs e) in C:\Users\user\Desktop\system ocdms\OnlineCommunicableDiseaseMonitoring\OnlineCommunicableDiseaseMonitoring\Application_hfmd\PredictionGraph.aspx.cs:75
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +141
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +150
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5445

0 Answers