Why isn't HttpUtility class being recognised?

こ雲淡風輕ζ 提交于 2019-12-04 18:37:08

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/13027368/why-isnt-httputility-class-being-recognised

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!