Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why isn't HttpUtility class being recognised?

I am trying to call the static HttpUtility.UrlEncode in my VB.NET project, but the IDE is not recognising the class saying that it is not declared.

I have imported the namespaces System.Net and System.Web to the project.

I also have the following at the top of the file:

Imports System.Net
Imports System.Web

What am I doing wrong?

like image 418
Paul Lassiter Avatar asked Oct 23 '12 09:10

Paul Lassiter


1 Answers

Add a reference to System.Web.dll to your project.

like image 86
John Koerner Avatar answered Oct 31 '22 20:10

John Koerner