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
10
votes
3 answers

Problem with config group when upgrading to .NET 4.0

So we've upgraded our site from 3.5 SP1 -> .NET 4. When we ran the site, we got an Internal Server Error (500), stating the following configuration group could not be read:
RPM1984
  • 72,246
  • 58
  • 225
  • 350
9
votes
4 answers

.NET Framework 4 Client Profile + System.Web.dll?

I'm currently developing an application for .NET 4 Client Profile, as this is the version that will be present on most home computers through Windows Update. However, I cannot add a reference to System.Web.dll as it does not exist in this version -…
pimvdb
  • 151,816
  • 78
  • 307
  • 352
8
votes
2 answers

Can't add a reference to System.Web to my Windows Service application

I'm trying to create a Windows Service in VS2010 but can't seem to add System.Web as reference. When I browse for it and add it manually I get an exclamation mark over the reference. I've tried adding it for other projects and it works fine, just…
Christo
  • 182
  • 3
  • 8
8
votes
1 answer

Microsoft.Owin.Host.SystemWeb on Mono/XSP

I've managed to get Katana/OWIN running on Mono using the HttpListener host. I'm now experimenting with Microsoft.Owin.Host.SystemWeb on Mono and XSP4. I'm using the code found in the this repo. It has a Startup class: using Owin; namespace…
friism
  • 19,068
  • 5
  • 80
  • 116
8
votes
1 answer

Why does HttpCookieCollection.Get returns null when called from a manually instantiated object (and not from the current HttpContext)

In the HttpCookieCollection.Get MSDN documentation, it is stated that: If the named cookie does not exist, this method creates a new cookie with that name. This is true and works well when calling HttpContext.Request.Cookies or…
Vincent de Lagabbe
  • 4,964
  • 3
  • 31
  • 38
8
votes
6 answers

Is Adding System.Web on other projects than a web page a bad practice?

I'm building an archetype of web project for my company, the idea is to have like a template to start building a new project with everything necessary already done, security, IoC, Logging, etc... I'm working on the security side of the template...…
varholl
  • 331
  • 1
  • 14
7
votes
3 answers

Potentially dangerous Request.Form value was detected from the client

I am running an ASP.Net MVC application and facing the following error. As I am new to ASP.Net, could someone please help me as to what does it mean and how can I resolve it? I tried googling to understand it, but found different answers for the…
tech_human
  • 6,592
  • 16
  • 65
  • 107
6
votes
2 answers

Solving OnSendingHeaders deadlock with Katana OpenID Connect Middleware

I'm trying to make use of the OpenID Connect authentication middleware provided by the Katana project. There's a bug in the implementation which causes a deadlock under these conditions: Running in a host where the request has thread-affinity (e.g.…
Paul Turner
  • 38,949
  • 15
  • 102
  • 166
5
votes
1 answer

No System.Web In VS2010

In a WPF project, I'm trying to add System.Web as a reference but in Project -> Add Reference -> .NET there's no System.Web. alt text http://img580.imageshack.us/img580/3406/addreference.png Any ideas? Thanks.
Alon Gubkin
  • 56,458
  • 54
  • 195
  • 288
5
votes
1 answer

Why multiple using of PreApplicationStartMethodAttribute isn't compiled?

System.Web.PreApplicationStartMethodAttribute defined as: [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=true)] public sealed class PreApplicationStartMethodAttribute : Attribute {} I.e. it allows multiple usage (AllowMultiple=true). But…
Shrike
  • 9,218
  • 7
  • 68
  • 105
5
votes
3 answers

System.Web.HttpContext.Current nulls itself after checking for a Cache

I encountered a weird issue today which made no sense to me. Here is a summary: Inside a method, I check for a cached item as below: private async Task getRatesStatusAsync() { //... if (_currentHttpContext != null) { …
tugberk
  • 57,477
  • 67
  • 243
  • 335
4
votes
0 answers

The type 'SoapHttpClientProtocol' is defined ... You must add a reference to assembly 'System.Web.Services, Version=2.0.0.0,'. in mvc core1.1

Hi i use a web reference in my Project i use visual studio 2017 with mvc core 1.1 and code like this . send.SendGroupSMSAsync("TextBoxSignature.Text", "TextBoxSMSNumber.Text", mobiles, _MSG, false, string.Empty, successCount, ReturnStr); now i…
sunny
  • 2,670
  • 5
  • 24
  • 39
4
votes
3 answers

Difference between "InProc" & "stateServer" mode in SessionState on ASP.NET

like the title shows I want to know what is the difference between "InProc" & "stateServer" mode in SessionState on ASP.NET. Thanks
Wassim AZIRAR
  • 10,823
  • 38
  • 121
  • 174
4
votes
1 answer

How can I register handlers for HttpApplication events outside of Init()

I'm creating a library that needs to run some code at various stages of the ASP.NET request lifecycle. It's easy to do this when writing a web application by overriding HttpApplication.Init() and registering various handlers there. However, I want…
ChaseMedallion
  • 20,860
  • 17
  • 88
  • 152
4
votes
1 answer

Why is SuppressFormsAuthenticationRedirect causing a build error?

I found the property SuppressFormsAuthenticationRedirect on this post, but when I tried to use it: Response.StatusCode = (int)HttpStatusCode.Unauthorized; Response.SuppressFormsAuthenticationRedirect = true; I get a build error: Error 53 …
xdumaine
  • 10,096
  • 6
  • 62
  • 103
1
2
3
11 12