How Add System.Web Reference To A Windows Form Application

13,674

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.

Share:
13,674

Related videos on Youtube

SilverLight
Author by

SilverLight

WEB DEVELOPER & C# PROGRAMMER ASP.NET C# JQUERY JAVASCRIPT MICROSOFT AJAX MICROSOFT SQL SERVER VISUAL STUDIO

Updated on June 04, 2022

Comments

  • SilverLight
    SilverLight almost 2 years

    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

  • Lali
    Lali about 10 years
    Worked perfectly. My target framework was 4.5 (not 4.5 client profile). I set it to 4.0 (not 4.0 client profile) simply.