HttpUtility does not exist in the current context
Posted
by Shaihi
on Stack Overflow
See other posts from Stack Overflow
or by Shaihi
Published on 2010-03-08T22:10:39Z
Indexed on
2010/03/09
9:21 UTC
Read the original article
Hit count: 623
I get this error when compiling a C# application. Looks like a trivial error, but I can't get around it.
My setup is Windows 7 64 bit. Visual-Studio 2010 C# express B2Rel.
I added a reference to System.Web.dll located at C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0
, but it has a yellow exclamation symbol and I still get the above error. I also have the using System.Web
declaration.
What am I doing wrong?
Update: After getting the prompt answer pointing me at the root cause, I searched a bit in Google to where it states that System.Web.dll is for the full framework. I did not find such a reference.
For newbies like me, this blog summarizes the difference between the frameworks (client and full) nicely. I could not find a spot that says whether a certain Dll is supported in the client framework or not. I guess the exclamation mark in Visual Studio should be the first signal...
© Stack Overflow or respective owner