简体   繁体   English

在已部署的应用程序中发生“无法加载文件或程序集'DevExpress.Web.ASPxGridView.v11.1'”错误

[英]The “Could not load file or assembly 'DevExpress.Web.ASPxGridView.v11.1'” error occurs in a deployed application

I am evaluating DevExpress and built a simple grid that works perfectly in Visual Studio but when I copy the site to my webserver I am unable to run my web site. 我正在评估DevExpress,并构建了一个可以在Visual Studio中完美运行的简单网格,但是当我将网站复制到Web服务器时,无法运行我的网站。 I am getting a configuration error (listed below). 我收到配置错误(在下面列出)。

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 'DevExpress.Web.ASPxGridView.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. 无法加载文件或程序集“ DevExpress.Web.ASPxGridView.v11.1,版本= 11.1.4.0,Culture = neutral,PublicKeyToken = b88d1754d700e49a”或其依赖项之一。 The system cannot find the file specified. 该系统找不到指定的文件。

Source Error: 源错误:

Line 19: <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
Line 20: <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
Line 21: <add assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=B88D1754D700E49A" />
Line 22: <add assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=B88D1754D700E49A" />
Line 23: <add assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=B88D1754D700E49A" />

Your Project is missing the DevExpress dll on the server (in this Case: DevExpress.Web.v11.1.dll) 您的项目缺少服务器上的DevExpress dll(在这种情况下:DevExpress.Web.v11.1.dll)

To solve this problem: copy the DevExpress dll from your DevExpress install folder (by Default: c:\\Program Files (x86)\\DevExpress 11.1\\Components\\Bin\\Framework) to your bin folder on the server. 解决方案:从您的DevExpress安装文件夹(默认情况下:c:\\ Program Files(x86)\\ DevExpress 11.1 \\ Components \\ Bin \\ Framework)将DevExpress dll复制到服务器上的bin文件夹。 Maybe you have to add the assembly in your web.config file: 也许您必须在web.config文件中添加程序集:

<system.web>
    <compilation debug="true" targetFramework="4.6.1">
        <assemblies>
            ....
            <add assembly="DevExpress.Web.v11.1, Version=11.1 ..."/>
        </assemblies>
    </compilation>
</system.web>

The reason why your project runs just fine in Visual Studio is your GAC (global assembly cache) where all DevExpress dll's are stored and available for you in Visual Studio. 您的项目在Visual Studio中运行良好的原因是您的GAC(全局程序集缓存)在其中存储了所有DevExpress dll,并且在Visual Studio中可供您使用。

A second solution (which binds you to a specific Version) is to install DevExpress v11.1 on your Server. 第二种解决方案( 绑定到特定版本)是在服务器上安装DevExpress v11.1。 Once you find an error in your Application solved by an update (from v11.1.3 to v11.1.4) you have to update ALL your applications on the Server. 一旦发现应用程序中的错误通过更新(从v11.1.3到v11.1.4)解决了,您就必须更新服务器上的所有应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 解析器错误消息:无法加载文件或程序集&#39;DevExpress.Web.v15.2, - Parser Error Message: Could not load file or assembly 'DevExpress.Web.v15.2, 使用ImageList对象时出现“无法加载文件或程序集...”错误 - “Could not load file or assembly…” error occurs when using an ImageList object 应用程序错误:无法加载文件或程序集 - Application error:Could not load file or assembly BadImageFormatException:无法加载文件或程序集...格式错误 - 仅适用于Web应用程序 - BadImageFormatException: Could not load file or assembly … bad format - Only with Web Application 错误:“无法加载文件或程序集System.Web.WebPages.Razor” - Error: “Could not load file or assembly System.Web.WebPages.Razor” 无法加载文件或程序集 'System.Web.Helpers,错误 IIS 8 - Could not load file or assembly 'System.Web.Helpers, error on IIS 8 无法加载文件或程序集错误 - Could not load file or assembly error C#应用程序启动时出错 - 无法加载文件或程序集 - C# Error on application startup - could not load file or assembly 无法在处理程序的子应用程序中加载文件或程序集错误 - Could not load file or assembly error in child application for handlers 无法在应用程序中加载文件或Microsoft.mshtml程序集错误 - Could not load file or assembly of Microsoft.mshtml error in application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM