【问题标题】:Errors Running DevExpress based ASP.NET Web Application In Ubuntu With Mono在使用 Mono 的 Ubuntu 中运行基于 DevExpress 的 ASP.NET Web 应用程序时出错
【发布时间】:2018-05-10 13:48:11
【问题描述】:

当我在 ubuntu 服务器上运行 devexpress 和 ASP.NET Web 应用程序时,我发现了这个错误。

Could not load file or assembly 'DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

所有其他 ASP.NET 应用程序在同一个 ubuntu 服务器上运行良好。

那么,我如何在 ubuntu 服务器上运行这个应用程序。

该应用程序已经在 Windows 7 的开发环境中完美运行。

我们将不胜感激。

【问题讨论】:

    标签: c# asp.net asp.net-mvc linux devexpress


    【解决方案1】:

    由于其他不使用 DevExpress 的应用程序似乎运行良好,以下是可能的解释:

    1) 这可能表明您的服务器中尚不存在 DevExpress 可再发行程序集。将应用程序部署到服务器时,确保所有必需的程序集都存在于应用程序的/bin 文件夹中。 The general information of redistributable assemblies 显示了在部署过程中要复制的所需程序集的完整列表。

    2) 一些 DevExpress 组件使用 P/Invoke 与 WinAPI 通信,这可能会触发与 Apache、Mono 甚至 .NET Core 环境的兼容性问题。正如Ingvar 所说的here,你可以尝试安装Wine 之类的Windows 模拟器,但仍然不能保证所有组件都能正常工作。

    另一个可用选项是删除所有 DevExpress 帮助程序,并使用标准 HTML 帮助程序与具有类似功能的各种 JavaScript 库相结合。

    相关问题:

    The "Could not load file or assembly 'X'" error message appears

    ASP.NET MVC with DevExpress in Linux

    DevExpress ASP.Net Component on Mono

    【讨论】:

      【解决方案2】:

      参考这个 - DevExpress ASP.NET MVC - What is the difference between DevExtreme MVC Controls and classic ASP.NET MVC Extensions

      从 v17.1 开始,DevExpress 正式推出了一套新的 MVC 平台的组件:Announcing the DevExtreme MVC Controls for ASP.NET MVC and .NET Core - Available in v17.1

      您可以使用 DevExtreme 产品或 .NET 核心来移植您的应用程序,但目前 DevExpress 不支持用于 ASP.NET 控件的 Mono。

      DevExtreme MVC 控件基于DevExtreme client-side widgets。它们更轻量级,并且它们与服务器的交互用于获取数据。它们提供了一种更自然的与 Web 服务(OData、WebApi)交互的方式。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-07-25
        • 2012-07-19
        • 2010-11-19
        • 2012-11-12
        • 1970-01-01
        相关资源
        最近更新 更多