2013-04-04 172 views
2

之一我接收此錯誤:無法加載文件或程序集「System.Web.DataVisualization」或一個依賴

Server Error in Application. 

Could not load file or assembly 'System.Web.DataVisualization' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. 
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.BadImageFormatException: Could not load file or assembly 'System.Web.DataVisualization' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.DataVisualization' could not be loaded. 

我接收此錯誤後,我改變的system.web.DataVisualization.dll屬性是Copy Local= true,並且這dll也在bin目錄中。但錯誤保持不變。

我該怎麼做才能擺脫這個錯誤。

+0

什麼是你的.net版本 – user1659922 2013-04-04 05:23:44

回答

1

您可能想要檢查您的項目是否使用了較新版本的.Net(4.0或更新版本)。

目標框架爲您的項目性能:在web.config文件的System.Web.DataVisualization

Project properties

1

更改版本項目框架版本。

Ex。

System.Web.DataVisualization, Version=4.0.0.0 

System.Web.DataVisualization, Version=3.5.0.0 

確保更改所有等價物。

相關問題