After upgrading to .Net 4.0, I'm getting the exception “Could not load file or assembly 'System.Windows, Version=2.0.5.0'”

安稳与你 提交于 2019-12-05 06:04:11

Sounds like one of the projects in your solution is referencing the v2 system assemblies. Make sure that all of your projects and application pools are set to use 4.0. You can set this in the project properties in Visual Studio.

(Note that you'll have to rebuild your solution with the new settings if you haven't already).

I have been having the same issues for a long time, but just found some old Silverlight Assemblies in my bin folder, removed those and voila.. error gone

Adding reference to AjaxControlToolkit.dll and adding the header

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

to the aspx that contains the script manager solved the problem for me.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!