Hi,
Please could somebody help me, I feel like I've tried everything and don't know how to stop the exception at the bottom of this message from occuring.
I have a setup on Amazon Web Services. I have the Matlab Compiler Runtime 64 and x84 installed to c:\Programs\.
I have a website in .NET 4.0 that gives the exception below.
When I run a console app with the same code it works fine.
This is for my MSc and would really really appreciate some help as I've been trying to get this working for the last 48hrs and its getting me upset :'-( !
Before people ask I've tried it with just x64 or x84 and again I get the same problem. I have also tried to use a MWNumericalArray instead of MWArray but to no avail.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: Trouble initializing libraries required by Builder NE.
Source Error:
Line 19: protected void Button1_Click(object sender, EventArgs e) Line 20: { Line 21: MWArray a = 7; Line 22: Response.Write(a.ToString()); Line 23: }
Source File: c:\ml5\Default.aspx.cs Line: 21
Stack Trace:
[Exception: Trouble initializing libraries required by Builder NE. ] MathWorks.MATLAB.NET.Utility.MWMCR..cctor() +1046
[TypeInitializationException: The type initializer for 'MathWorks.MATLAB.NET.Utility.MWMCR' threw an exception.] MathWorks.MATLAB.NET.Arrays.MWArray..cctor() +185
[TypeInitializationException: The type initializer for 'MathWorks.MATLAB.NET.Arrays.MWArray' threw an exception.] MathWorks.MATLAB.NET.Arrays.MWArray.op_Implicit(Double scalar) +29 _Default.Button1_Click(Object sender, EventArgs e) in c:\ml5\Default.aspx.cs:21 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3707
——————————————————————————– Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Best Answer