I\'d like to use HttpUtility.UrlEncode in a console application, VB.NET, VS 2010 Beta 2.
System.Web.HttpUtility.UrlEncode(item)
Error message:
Changing the project's Target Framework from ".NET Framework 4 Client Profile" to ".NET Framework 4.0" helped me, with .NET Framework 4 Client Profile as Target framework I was able to add System.Web 2.0 version by Browsing to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 from Add reference window but doing the same for System.Web 4.0 dll gave a warning.