发布网站后出现错误 [英] Error after publish website

查看:64
本文介绍了发布网站后出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

"/co"应用程序中的服务器错误.
无法加载文件或程序集``DevExpress.Web.v9.1,Version = 9.1.3.0,Culture = neutral,PublicKeyToken = b88d1754d700e49a''或其依赖项之一.找到的程序集的清单定义与程序集引用不匹配. (来自HRESULT的异常:0x80131040)
说明:执行当前Web请求期间发生未处理的异常.请查看堆栈跟踪,以获取有关错误及其在代码中起源的更多信息.

异常详细信息:System.IO.FileLoadException:无法加载文件或程序集"DevExpress.Web.v9.1,版本= 9.1.3.0,区域性=中性,PublicKeyToken = b88d1754d700e49a"或其依赖项之一.找到的程序集的清单定义与程序集引用不匹配. (来自HRESULT的异常:0x80131040)

源错误:

当前Web请求的执行期间生成了未处理的异常.可以使用下面的异常堆栈跟踪来标识有关异常的来源和位置的信息.

程序集加载跟踪:以下信息有助于确定为什么无法加载程序集"DevExpress.Web.v9.1,版本= 9.1.3.0,文化=中性,PublicKeyToken = b88d1754d700e49a".

Server Error in ''/co'' Application.
Could not load file or assembly ''DevExpress.Web.v9.1, Version=9.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a'' or one of its dependencies. The located assembly''s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
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.FileLoadException: Could not load file or assembly ''DevExpress.Web.v9.1, Version=9.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a'' or one of its dependencies. The located assembly''s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

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 ''DevExpress.Web.v9.1, Version=9.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a'' could not be loaded.

推荐答案

这意味着您从DevExpress库调用了一个组件,并且服务器上未安装DevExpress库. 另请参阅: http://www.devexpress.com/Support/Center/KB/p/K18109 .aspx [ ^ ]
That means that you call a component from the DevExpress library, and that DevExpress library is not installed on the server.
See also: http://www.devexpress.com/Support/Center/KB/p/K18109.aspx[^]


Solution 1


的补充 您不应该在服务器上安装DevExpress-只需将您使用的所有DLL放在"bin"文件夹中并检查其版本即可.如果配置中的版本与实际DLL的版本不同,请调整配置文件.


you should not install DevExpress on server - just put all DLLs you use in ''bin'' folder and check their version. Adjust config file if versions in config differ from versions of real DLLs.


<modules>
   <remove name="ScriptModule" />
   <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
   <!--<add type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v9.1, Version=9.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule"/>-->
 </modules>


这篇关于发布网站后出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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