无法加载文件或程序集“System.Web.DataVisualization”或其依赖项之一 [英] Could not load file or assembly 'System.Web.DataVisualization' or one of its dependencies

查看:155
本文介绍了无法加载文件或程序集“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.


这篇关于无法加载文件或程序集“System.Web.DataVisualization”或其依赖项之一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆