Questions tagged [system.web]

System.Web is a namespace of the .NET framework. It supplies classes and interfaces that enable browser-server communication.

System.Web is a namespace of the .NET framework. It supplies classes and interfaces that enable browser-server communication.

References

168 questions
4
votes
1 answer

How Add System.Web Reference To A Windows Form Application

I want to use HttpUtility.UrlEncode in a windows form application, but i can not find System.Web in .NET (Add Reference) area! How can i add this assembly to my project? i am using .net 4... thanks in advance
SilverLight
  • 19,668
  • 65
  • 192
  • 300
4
votes
1 answer

Why do I get an HttpException from VirtualPathUtility ToAbsolute with some paths?

I'm trying to use VirtualPathUtility.ToAbsolute to resolve app-relative paths, such as ~/MyPage.aspx, to application-absolute paths, such as /MySite/MyApp/MyPage.aspx. However, with some paths, I receive an HttpException saying that my path is "not…
AakashM
  • 62,551
  • 17
  • 151
  • 186
3
votes
1 answer

"The type or namespace name 'HttpApplication' could not be found" error in .Net6

Recently I upgrade my .net 4.8 web project to .net 6. Post upgrade I am getting below error from Global.asax.cs page public class MvcApplication : HttpApplication CS0246 The type or namespace name 'HttpApplication' could not be found (are you…
Jackys
  • 107
  • 11
3
votes
1 answer

Is there a bug in System.Web.HttpUtility.UrlDecode?

Consider the following line of code: string _decoded = System.Web.HttpUtility.UrlDecode( "There%20should%20be%20text%20after%20this%0022help!"); The encoded line "There%20should%20be%20text%20after%20this%0022help!" when decoded via the…
user77232
  • 203
  • 3
  • 10
3
votes
5 answers

How to reference System.Web namespace?

When i writing: "System.W...", the intellisence isn't show me "System.Web" why?
Glebka
  • 1,420
  • 3
  • 20
  • 37
3
votes
1 answer

Why does HttpResponseException only allow its message to be read async?

I'm writing a unit test method that exercises code that, under the conditions of my test, is expected to throw an HttpResponseException with a specific response message. The relevant portion of my test method code looks like this: try { …
Jon Schneider
  • 25,758
  • 23
  • 142
  • 170
3
votes
1 answer

Step into .net framework System.Web, 4.0

Is anyone able to successfully load symbols for the 4.0 version of System.Web in Visual Studio 2010? I have seen many tutorials on this but am not able to find symbols that will work. The symbols from the Microsoft symbol servers do not work and are…
Joe Cartano
  • 2,997
  • 3
  • 22
  • 40
3
votes
2 answers

Non System.Web substitute for HttpPostedFileBase?

I am trying to move some C# MVC legacy code into a shared DLL. All went well so far, but I was asked that that shared DLL need not reference System.Web in any way. The only type used in that DLL from System.Web is HttpPostedFileBase: public string…
datps
  • 768
  • 1
  • 6
  • 16
3
votes
1 answer

Server Error in '/' Application. System.Web.Http.WebHost

I'm trying to publish an ASP.NET MVC 4 Internet Application. After it's been published, I go ahead and click the link for my website and find this: Server Error in '/' Application. Could not load file or assembly 'System.Web.Http, Version=4.0.0.0,…
Edd
  • 1,948
  • 4
  • 21
  • 29
3
votes
2 answers

What to use instead of HttpContext when using OWIN without System.Web

We currently have a NancyFx project that we have wired up using OWIN. We are not using System.Web and we need some place to put our context that lives for the life of a request other than HttpContext. We have started implementing the context on a…
Braden
  • 617
  • 1
  • 8
  • 23
3
votes
2 answers

The type or namespace name 'routing' does not exist in the namespace 'system.web' visual studio

The type or namespace name 'Routing' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) I added web reference System.Web.Routing, but still it showing error.
Firoz Khan
  • 623
  • 1
  • 9
  • 23
3
votes
1 answer

MT2002: Failed to resolve assembly: System.Web

I had tracked third party assemblies but not got any clue.This is the error=> Compiling to native code /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" -v --cache…
Mahesh Bansode
  • 297
  • 1
  • 3
  • 13
3
votes
1 answer

Could not load file or assembly 'System.Web' or one of its dependencies.

I'm getting the following error: Could not load file or assembly 'System.Web' or one of its dependencies. The system cannot find the file specified. To reproduce it, Create a new website in Visual Studio 2012. It creates a new templated website. Add…
MC9000
  • 2,076
  • 7
  • 45
  • 80
3
votes
2 answers

httputility does not exist in current context in framework 3.5

I'm trying to use HttpUtility.UrlEncode in my sharepoint project in the framework 3.5 but it doesn't recognise it. Simply saying : HttpUtility does not exist in current context I called System.Web but it still doesn't recognise none of the Http…
Jojo GKH
  • 57
  • 3
  • 7
2
votes
1 answer

How to keep clean ASP.NET web.config file for a new MVC3/Azure project using only ?

I just created a new project in MVC3 using EF4 code first deployed on Windows Azure. I want to keep my "web.config" file as clean as possible because it's a little complicated to understand all tags it contains. I notice two sections:
Francesco Cristallo
  • 2,856
  • 5
  • 28
  • 57
1 2
3
11 12