Search code examples
c#.netc#-4.0system.web.extensions

Why can't I reference System.Web.Extensions in a Console application?


The assembly is not in the list in the Add Reference... dialog. When I find it manually and add it, it has a small exclamation point over it and I can't seem to refer to it in code.

I tried it on 2 different copies of VS2010 with same results.


Solution

  • Change Target Framework from Client profile to the full framework and you will be able to add it.