2016-06-21 5 views
0

Ich habe eine Webanwendung in MVC 4 erstellt und hostet sie in lokalen IIS und es funktioniert gut, aber wenn ich bin hosting es in 3rd Party Server dh Glob-Host dann ist es mir Fehler geben und meine Anwendung läuft nicht. Bitte gib mir irgendeinen Vorschlag dafür, was in meiner Bewerbung falsch ist. Fehler ist ...Wie zu lösen "Konnte Datei oder Assembly nicht laden 'System.Web.Http, Version = 4.0.0.0"

Could not load file or assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

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.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

Antwort

0

Meistgenannte Punkte zu beachten:

→ Sie müssen sicherstellen, dass alle DLLs verweisen, das Projekt und erneuten Upload auf Server wieder aufzubauen.

→ Stellen Sie sicher, dass die 32-Bit-Anwendungsunterstützung für den Anwendungspool aktiviert ist, der von Ihrer Site auf dem Produktionsserver verwendet wird. (Wenn eine DLL 32-Bit-Unterstützung benötigt und Sie sie nicht aktiviert haben, wird ein solches Problem auftreten.)