2013-04-04 3 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

ответ

1

Возможно, вы захотите проверить, что ваш проект использует относительно недавнюю версию .Net (4.0 или новее).

См Target Framework под свойства для вашего проекта:

Project properties

1

Изменения версии System.Web.DataVisualization в файл web.config проект рамочной версии.

Ex.

System.Web.DataVisualization, Version=4.0.0.0 

в

System.Web.DataVisualization, Version=3.5.0.0 

Убедитесь, что изменить все эквиваленты.

Смежные вопросы

 Смежные вопросы