Error 1 The type or namespace name ‘HttpServerUtility’ does not exist in the namespace ‘System.Web’ (are you missing an assembly reference?)

Probably another noob question but I get the error in the title when I try to:

System.Web.HttpServerUtility.UrlTokenEncode(hash); 

(Completion for System.Web only shows a couple of Asp classes).

Which is a puzzler. Any pointers?

I'm using the Community version of VS 2013: is this a limitation of the version of .Net that's included?

by Heinemenusch via /r/csharp

Leave a Reply