1

我想在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

回答

0

要解決此問題,實際上您已通過啓用屬性Copy to Local = true, 來生成項目,然後您將獲得該程序集,並且必須將DevExpress.Web.ASPxPivotGrid.v15.2放入bin文件夾,在該文件夾中,您部署了該特定項目即(Windows Server 2008 R2)

+0

你能告訴我如何啓用屬性複製到Local = true? –

相關問題