When i writing: "System.W...", the intellisence isn't show me "System.Web" why?
How to reference System.Web namespace?
9.5k views Asked by Glebka At
5
There are 5 answers
0
On
There could be various possibilities for such behavior:
- You might have missed referencing some essential assemblies; because there is no .NET without these two things i.e
BCL(Base Class Libraries)
&CLR(Common Language Runtime).
- Wrong targeting of .NET Framework version. If you target .NET 3.5 or 4 client profile, you won't see ASP.NET assemblies.Solution, go to: Project > Properties > Target Framework. Change it from
".NET Framework 4 Client Profile"
to ".NET Framework 4"
When i switch Build Action(of file *.cs) from "Content" to "Compile", my program began to work.