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
1
vote
0 answers

Why is HttpApplication._handlerFactories null?

I have 50+ asp.net 4.5 websites on 1 server(2012 R2), in 5 different App Pools. Occasionally I would met NullReferenceException when pool recycled and restarting with this stacktrace: System.Web.HttpApplication.GetFactory(String type)…
deerchao
  • 10,454
  • 9
  • 55
  • 60
1
vote
0 answers

can't find System.Web.Security namespace on codeplex

Does anyone know why I cant find System.Web.Security namespace on codeplex? http://aspnetwebstack.codeplex.com/SourceControl/latest I am looking for the membership provider class that is part of this…
mattbloke
  • 177
  • 10
1
vote
1 answer

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

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…
sharkin
  • 12,162
  • 24
  • 86
  • 122
1
vote
1 answer

httpcontext in windows phone application

I an pretty new to Windows phone development and I'm facing the first issue coding the first app. I can't add a reference to system.Web and I'd like to use httpcontext, I don't know even if it's possible. I needed to use another functionality such…
Alfonso Leon
  • 497
  • 4
  • 4
0
votes
2 answers

Need help finding a dll

I just want to use HttpUtility.UrlEncode(myString). The project is .NET 3.5. But I can't find the corresponding dll. In .NET 4.0 it seems to be in System.web. But I'm not sure where it's located for 3.5 Can someone show me where I can download the…
tycom iplex
  • 131
  • 1
  • 8
0
votes
0 answers

Add ref to SYSTEM.WEB.EXTENSIONS‬

I have the follow lines: [System.Diagnostics.DebuggerNonUserCodeAttribute()] private global::AjaxControlToolkit.ToolkitScriptManager @__BuildControlToolkitScriptManager1() { global::AjaxControlToolkit.ToolkitScriptManager…
URL87
  • 10,667
  • 35
  • 107
  • 174
0
votes
1 answer

add reference to System.Web in WcfServiceLibrary

Can you add a refference to System.Web.dll in aWcfServiceLibrary. I want to create a Wcf service that executes a EXE on the server. For this I have the following code: System.Diagnostics.Process process1 = new System.Diagnostics.Process(); …
Ryan
  • 5,456
  • 25
  • 71
  • 129
0
votes
0 answers

System.Web.HttpRequestValidationException - not being reported by Server.GetLastError

I have a web site running .NET 4.8 that defines Application_Error in the Global.asax file. This is used to handle all errors in the application code. When Application_Error is called it uses Server.GetLastError to determine the specific error so it…
0
votes
0 answers

Setting not encrypted data inside the cookie makes the cookie not readable

**Using Visual Basic and .Net Framework 4.7.2: ** Setting Cookie in the Response: Dim token = JwtToken.GenerateToken(expiresAt:=Date.Now.AddHours(2), claims:=tokenIdentity.Claims.ToArray) Dim authTicket As New FormsAuthenticationTicket(1,…
0
votes
1 answer

Azure build pipeline: Error ASPPARSE: Could not load file or assembly 'System.web.mobile' or one of its dependencies

This is an old application and I have been tasked with building an azure pipeline. We are using VS 2019 and upgraded the application to .net framework 4.6.1. Build pipeline is failing with this error: Error ASPPARSE: Could not load file or assembly…
Patrick95
  • 110
  • 12
0
votes
0 answers

System.Web load exception in class library when using adapters

I am trying to migrate some old API to .net 6. I am using for that new System.Web adapters. Just to verify when I use HttpContext.Current in .net 6 API project everything is fine. Problem is that one of the older class library projects is using…
sanjuro
  • 1,611
  • 1
  • 21
  • 29
0
votes
0 answers

How to syncronize data (application settings) between app pool

I have a static class, containing vaious settings fon .NET web api 2 (mostly parameters, links, flags etc.). Those parameters are filled from XML - file on startup. The task is to make them changeable through website. As I understand it, when the…
Alex
  • 83
  • 7
0
votes
1 answer

WPF designer fail to load because of System.Web Exception !!

My wpf designer fails to load because it says it cannot find assembly System.web and I don't have any idea what wpf has to do with System.web Any Idea ? Here is one of the XAML Pages :
Pouyan
  • 2,849
  • 8
  • 33
  • 39
0
votes
1 answer

"Http" and "Mvc" Does not Exist in the Namespace "System.Web"

I'm trying to run a web app, but I have problem with the API as Http and Mvc Does not Exist in the Namespace System.Web in Visual Studio 2019. using System.Web.Http; using System.Web.Mvc; But as I've checked the references, they are already there…
Xev
  • 109
  • 1
  • 1
  • 12
0
votes
1 answer

WCF Service encoding single quotes after upgrade to Server 2019

After upgrading our webserver to Windows 2019 (from 2008) our WCF service (.NET 3.5) responses are html encoded. For clarification, the response is supposed to be an encoded xml string (intentionally, via System.Web.HttpUtility.HtmlEncode) - but…
codenewbie
  • 181
  • 16