0 Replies - 2086 Views - Last Post: 13 August 2012 - 03:43 AM Rate Topic: -----

#1 sharkeyboy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 29-January 10

C# .NET Trouble initializing libraries required by Builder NE

Posted 13 August 2012 - 03:43 AM

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 (7.17) 64 and x84 installed to c:\Programs\. or c:\programs (84)\

I have a website in .NET 4.0 running on Windows Server 2008, IIS 7, 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

Is This A Good Question/Topic? 0
  • +

Page 1 of 1