如何解决此错误“无法加载文件或程序集”DevExpress.Web.ASPxPivotGrid.v15.2“?

问题描述:

我想在IIS上的我自己的服务器(Windows Server 2008 R2)上部署我的网站。如何解决此错误“无法加载文件或程序集”DevExpress.Web.ASPxPivotGrid.v15.2“?

起初它会抛出目标框架配置错误。然后我安装.Net框架4.5我安装了.NET Framework 4.5后,不是引发以下错误

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.ASPxPivotGrid.v15.2, Version=15.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 35: Line 36: Line 37: Line 38: Line 39:

Source File: C:\inetpub\wwwReport\web.config Line: 37

Assembly Load Trace: The following information can be helpful to determine why the assembly 'DevExpress.Web.ASPxPivotGrid.v15.2, Version=15.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' 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].

后,我谷歌,我创建了融合启用日志1也以这种方式。

  1. 的管理员

  2. 开放CMD运行CMD “REG ADD HKLM \ SOFTWARE \微软\融合/ V EnableLog /吨REG_DWORD/d 1”

3. “操作成功完成”

+0

您需要将“DevExpress.Web.ASPxPivotGrid.v15.2.dll”的引用添加到您的项目中,然后再次重建和部署。 – andrews

+0

@andrews我用本地机器尝试了相同的文件。它工作得很好。但为什么不在我的服务器? –

+0

,因为在服务器上提到.dll只是在您的应用程序的bin文件夹中丢失。检查服务器上的'bin /'文件夹中是否存在'DevExpress.Web.ASPxPivotGrid.v15.2.dll'文件。 – andrews

要解决此问题,实际上您已通过启用属性Copy to Local = true, 来生成项目,然后您将获得该程序集,并且必须将DevExpress.Web.ASPxPivotGrid.v15.2放入bin文件夹,在该文件夹中,您部署了该特定项目即(Windows Server 2008 R2)

+0

你能告诉我如何启用属性复制到Local = true? –