C#/.NET - Help, I have only three classes in my System.Web namespace

倖福魔咒の 提交于 2019-12-10 11:33:56

问题


I discovered the problem when I got a suggestion to use the System.Web.HttpUtility class for a certain task.

Looking at the documentation, I should have about 50 classes in System.Web, but I have only these:

AspNetHostingPermission
AspNetHostingPermissionAttribute 
AspNetHostingPermissionLevel

I make this assumption since they are the only ones showing up in intellisense, and I get build errors when trying to use any other classes than these three.

I'm using .NET 3.5 SP1, and in the reference dialog it says i have version 2.0 of the System.Web component.

I'm lost. What could be wrong?


回答1:


These are the three which are in the System Reference.

Have you added a reference to System.Web in your project?



来源:https://stackoverflow.com/questions/1531906/c-net-help-i-have-only-three-classes-in-my-system-web-namespace

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