HttpUtility.UrlEncode in console application

Posted by iar on Stack Overflow See other posts from Stack Overflow or by iar
Published on 2010-01-27T11:02:10Z Indexed on 2010/04/11 12:03 UTC
Read the original article Hit count: 2075

I'd like to use HttpUtility.UrlEncode in a console application, VB.NET, VS 2010 Beta 2.

System.Web.HttpUtility.UrlEncode(item)

Error message: 'HttpUtility' is not a member of 'Web'.

In this question Anjisan suggests to add a reference to System.Web, as follows:

  1. In your solution explorer, right click on references
  2. Choose "add reference"
  3. In the "Add Reference" dialog box, use the .NET tab
  4. Scroll down to System.Web, select that, and hit ok

However, I don't have a System.Web entry at that location.

© Stack Overflow or respective owner

Related posts about urlencode

Related posts about console-application