无法加载文件或程序集“System.Web.DataVisualization”或其依赖项之一

无法加载文件或程序集“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目录。但错误保持不变。



我应该做些什么来摆脱这个错误。


After face this error, I was change the property of system.web.DataVisualization.dll is Copy Local= true, and this dll also have in bin directory. but the error remains constant.

What should I have to do for getting rid this error.

这个程序集是建立的通过比当前加载的运行时更新的运行时并且无法加载



您的应用程序目标是什么版本的.Net框架 - 请查看您的项目属性校验。然后检查要安装的PC上.Net框架的版本。
"This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded"

What version of the .Net framework is your application targetting - Have a look in your project properties to check. Then check what versions of the .Net framework are on the PC you are installing on.