2012-09-21 10 views
12

Zainstalowałem witrynę na serwerze i pojawia się ten błąd. Dlaczego otrzymuję to?Błąd konfiguracji: System.Web.Helpers

Configuration Error 
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Could not load file or assembly 'System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. 

Source Error: 


Line 16:  <assemblies> 
Line 17:   <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
Line 18:   <add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
Line 19:   <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
Line 20:   <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 

Source File: C:\<path>\web.config Line: 18 

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


WRN: Assembly binding logging is turned OFF. 
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. 
Note: There is some performance penalty associated with assembly bind failure logging. 
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 

Odpowiedz

26

Wygląda na to, że serwer, na którym wdrożono aplikację, nie ma zainstalowanego programu ASP.NET MVC 3. Jeśli nie chcesz instalować programu ASP.NET MVC 3 na serwerze, możesz również użyć swojej aplikacji pod numerem bin deploy.

2

Miałem ten sam problem i zainstalowałem aktualizację narzędzi ASP.NET MVC 3 ze strony Microsoft i problem został rozwiązany.

Sprawdź również, czy plik C: \ Program Files (x86) \ Microsoft ASP.NET jest obecny przed instalacją. Tak jak w moim przypadku ten folder był nieobecny, a po instalacji mam ten folder, a zespoły zostały zarejestrowane.

0

Miałem następującą sytuację. Całkowicie nowy laptop z Visual Studio 2015 działający na nieco starszym projekcie MVC3. Visual Studio 2015 i nowsze wersje najwyraźniej nie instalują już MVC 3. Tak więc po pobraniu pliku AspNetMVC3ToolsUpdateSetup.exe i zainstalowaniu go odpowiednie referencje zostały znalezione (z GAC). Kompilacja zakończyła się bez błędów, oprócz tej instalacji nie trzeba wykonywać żadnych dodatkowych kroków.

Powiązane problemy