How Add System.Web Reference To A Windows Form Application

SilverLight picture SilverLight · Dec 2, 2012 · Viewed 13.6k times · Source

I want to use HttpUtility.UrlEncode in a windows form application,
but i can not find System.Web in .NET (Add Reference) area!
How can i add this assembly to my project?
i am using .net 4...

thanks in advance

Answer

Warlock picture Warlock · Dec 2, 2012

Right click on a project -> Properties -> Change Target Framework from .Net Framework 4 Client Profile to .Net Framework 4

When you remove a Client Profile restriction, you will see System.Web in .Net (Add Reference) area.