Use VS 2010 days, happy And hurt...
Today, I originally wanted to write this essay, but when I dealt with the CSS of the new template submitted by Chaoyang, I opened CSS file and VS2010 crashed, so I found another bug in VS2010. .
This VS2010 Bug is encountered in the project after compiling the Web Site after upgrading the code of the blog garden from VS2008 to VS2010, see the following picture:
for [System.Web.Script.Services .ScriptService], everyone knows that it exists in System.Web.Extensions.dll. For this hint, it seems to be a simple question, add a reference to System.Web.Extensions.dll, I think so, and do the same.
But the result is unexpected, the problem is still...
After research, I finally found a temporary solution to this problem.
Problem occurrence condition:
1. VS 2010 Web Site；
2. The compiled target Framework is 3.5.
Copy System.Web.Extensions.dll from C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5 to C:\Program Files\Reference Assemblies\Microsoft\Framework \v3.0, and restart VS2010.
Target Framework is v3.5, VS2010 is looking for references in the GAC of v3.0, Bug, this is the Bug!
Related Links:Reprinted please indicate the address of this article: VS2010 Small Bug: Cannot find System.Web.Extensions.dll reference