I got this error when i run something using visual studio 2003.
My system also has .net 2. So IIS assign using .net 2 as asp.net framework
Go to IIS, right click on the website, and select property, click aps.net tab, change asp.net version number to 1.1
转载于:https://www.cnblogs.com/yangbin990/archive/2009/02/13/1390008.html