Original address: VS2010 Small Bug: Cannot find System.Web.Extensions.dll reference

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:

3d1181d4407be0220d47a904d36eb4fc.jpe

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.

25547979f89c34b245e350d3559e4657.jpe

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.

974ddeae3dfd85288596cb565a419ec5.jpe

解方法:

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