gpt4 book ai didi

c# - 无法加载文件或程序集 'System.Web.DataVisualization' 或其依赖项之一

转载 作者:太空宇宙 更新时间:2023-11-03 11:06:03 28 4
gpt4 key购买 nike

我收到这个错误:

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目录下.但错误保持不变。

我应该怎么做才能摆脱这个错误。

最佳答案

将 web.config 文件中的 System.Web.DataVisualization 版本更改为项目框架版本。

例如

System.Web.DataVisualization, Version=4.0.0.0

System.Web.DataVisualization, Version=3.5.0.0

确保更改所有等价物。

关于c# - 无法加载文件或程序集 'System.Web.DataVisualization' 或其依赖项之一,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15803071/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com