I can not access the elements of the System.Web space
Screen from Object Browser
There is a lot of things, and when addressing in the code 3 elements are available:
Even using does not help, what could be the reason?
I can not access the elements of the System.Web space
Screen from Object Browser
There is a lot of things, and when addressing in the code 3 elements are available:
Even using does not help, what could be the reason?
Classes of their single namespace can be defined in different assemblies (different DLLs).
System.Web.AspNetHostingPermission
and the remaining two classes from the prepress are defined in System.dll , which is connected to the default project.
The remaining classes from System.Web
defined in System.Web.dll
, which you need to add in the project References - select the project in Solution Explorer, right-click on References, Add Reference.
Try
using System.Web; using System.Web.Mail; // к примеру
Or if you know what you need, then write it, and the studio itself will offer what you need to add to using.
Source: https://ru.stackoverflow.com/questions/508743/
All Articles