2012-09-21 2 views
12

サーバーにサイトを展開しましたが、このエラーが発生します。なぜ私はこれを手に入れますか?構成エラー: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]. 

答えて

26

あなたはASP.NET MVC 3をインストールしていないアプリケーションをデプロイしたサーバーのように見えます。サーバーにASP.NET MVC 3をインストールしたくない場合は、アプリケーションをbin deployにすることもできます。

2

私は同じ問題を抱えていたと私はMicrosoftのサイトからASP.NET MVC 3つのツールのアップデートをインストールし、それが問題を解決しました。

はまた、Cかどうかを確認:\プログラムファイル(x86の)\マイクロソフトASP.NETは、インストール前に存在しています。私の場合のように、このフォルダはありませんでしたし、インストール後私はこのフォルダがあり、アセンブリが登録されています。

0

次のような状況がありました。若干古いMVC3プロジェクトで動作するVisual Studio 2015を搭載した新しいラップトップです。 Visual Studio 2015以降では、明らかにMVC 3はインストールされていません。そのため、AspNetMVC3ToolsUpdateSetup.exeをダウンロードしてインストールした後、右側の参照はGACから検索されます。ビルドはエラーなしで完了し、このインストールのほかに追加の手順は必要ありません。