2017-07-09 5 views
0

Ich verwende Visual Studio 2015, Matlab 2015Ra, IIS Windows-10, .Net Framework 4.5.2. Matlab 2015Ra, IIS, Visual Studio 2015 sind 64 Bit auf Windows 10 64 Bit. Ich habe Matlab-Skript als net Assembly oder DLL kompiliert. Wenn ich den Entwicklungsserver benutze, der in Visual Studio eingebauten Server bedeutet, funktioniert das Programm gut ohne Fehler, während ich auf IIS, das Programm fehlschlägt Matlab-Code mit diesem Screenshot Fehlermeldung ausgeführt wird. enter image description hereMatlab-Skript funktioniert nicht auf IIS

Fehler:

The MATLAB runtime instance could not be initialized 
segv - SEVERE ERROR 

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.ApplicationException: The MATLAB runtime instance could not be initialized 
segv - SEVERE ERROR 

komplette Stack-Trace:

[ApplicationException: The MATLAB runtime instance could not be initialized 
segv - SEVERE ERROR] 
    MathWorks.MATLAB.NET.Utility.MWMCR..ctor(String componentId, String componentPath, Stream embeddedCtfStream, Boolean isLibrary) +282 

[Exception: The MATLAB runtime instance could not be initialized] 
    MathWorks.MATLAB.NET.Utility.MWMCR..ctor(String componentId, String componentPath, Stream embeddedCtfStream, Boolean isLibrary) +736 
    get_matrix_svd.matrix_svd..cctor() +375 

[Exception: MWArray assembly failed to be initialized] 
    get_matrix_svd.matrix_svd..ctor() +43 
    sistem_elearning.LatentSemanticAnalysisScore.execute() in C:\tugas\sistem_elearning\sistem_elearning\LatentSemanticAnalysisScore.cs:199 
    sistem_elearning.takeexam.btnSubmit_Click(Object sender, EventArgs e) in C:\tugas\sistem_elearning\sistem_elearning\takeexam.aspx.cs:139 
    System.Web.UI.WebControls.Button.OnClick(EventArgs e) +11802037 
    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +150 
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1735 

mir jemand helfen, warum diese Fehler passiert ist, Frustated ich diesen Fehler zu suchen, ich danke Ihnen so viel, müssen Ihren Gunsten geschätzt.

Antwort

0

Ich habe zwei Vorschläge:

1) Überprüfen Sie, dass der Server-Betriebssystem und IIS-Version 64-Bit wie Ihr VS auch, dass die MATLAB Compiler Runtime ('MCR' Check 2015.

2) ist) ist installiert (muss die gleiche Version wie MATLAB sein).

Verwandte Themen