配置错误:System.Web.Helpers [英] Configuration error: System.Web.Helpers

查看:1883
本文介绍了配置错误:System.Web.Helpers的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我部署一个站点到服务器,我得到这个错误。为什么会出现这个?

 配置错误
说明:该请求提供服务所需的配置文件的处理过程中出现错误。请检查下面的特定错误详细信息并适当地修改配置文件。

分析器错误信息:未能加载文件或程序集System.Web.Helpers,版本= 1.0.0.0,文化=中性公钥= 31bf3856ad364e35或它的某一个依赖。该系统找不到指定的文件。

源错误:


第16行:其中,组件>
第17行:LT;添加组件=System.Web.Abstractions,版本= 4.0.0.0,文化=中性公钥= 31BF3856AD364E35/>
第18行:LT;添加组件=System.Web.Helpers,版本= 1.0.0.0,文化=中性公钥= 31BF3856AD364E35/>
第19行:LT;添加组件=System.Web.Routing,版本= 4.0.0.0,文化=中性公钥= 31BF3856AD364E35/>
第20行:LT;添加组件=System.Web.Mvc,版本= 3.0.0.0,文化=中性公钥= 31BF3856AD364E35/>

源文件:C:\<路径> \ web.config行:18

程序集加载跟踪:下列信息有助于确定程序集System.Web.Helpers,版本= 1.0.0.0,文化=中性公钥= 31bf3856ad364e35'无法加载。


警告:程序集绑定日志记录被关闭。
要启用程序集绑定失败日志记录,注册表值[HKLM \软件\微软\融合!EnableLog](DWORD)设置为1。
注意:有一些与程序集绑定失败日志记录关联的性能损失。
要关闭此功能,删除注册表值[HKLM \软件\微软\融合!EnableLog。
 

解决方案

看起来像您部署的应用程序没有ASP.NET MVC 3安装服务器。如果你不希望在服务器,你也可以的仓部署您的应用程序。

I deployed a site to a server and I get this error. Why do I get this?

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].

解决方案

Looks like the server on which you deployed the application doesn't have ASP.NET MVC 3 installed. If you do not want to install ASP.NET MVC 3 on the server you could also bin deploy your application.

这篇关于配置错误:System.Web.Helpers的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆