Can't find HttpServerUtility class in System.Web in C#
问题 I'm trying to call the HttpServerUtuility.URLDecode function in C# using Visual Studio 2005, but it can't be found. I'm using System.Web properly, but the class doesn't seem to be there. Do I need to add some sort of reference to my project? 回答1: A few points: You need a reference to the System.Web assembly You need to get the class name right ( HttpServerUtility , not HttpServerUtuility ) You need to get the method name right ( UrlDecode , not URLDecode ) You need an instance of the class,