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
2
votes
1 answer

How do I access HttpContext.Current.Session in a class library?

So, I am creating a class library that handles user information like username, password, etc. I want to do this so that I can just reference this library with any of my web apps and not have to continuously rewrite the user information part. In,…
ScubaSteve
  • 7,724
  • 8
  • 52
  • 65
2
votes
1 answer

Transferring large files with WCF

Currently our web service sends files within one web service call. This would otherwise be just acceptable, but because our mobile devices have memory limitations of 40mb, this causes bit of a problem. Unfortunately I can't modify the server side,…
Juha
  • 672
  • 7
  • 20
2
votes
0 answers

The System.Web.Razor API documentation

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Can anyone speak to the fact that the System.Web.Razor.* namespaces are polluted with this? This seems plain irresponsible, if not…
Dan Lugg
  • 20,192
  • 19
  • 110
  • 174
2
votes
2 answers

how does System.Web.HttpRequest::PathInfo work?

I am trying to understand the PathInfo property of System.Web.HttpRequest and how it is set. Why would it be empty in the following example? var p = new System.Web.HttpRequest("file.txt","http://file.com/files/file.txt",""); //PathInfo is always…
Christian Westman
  • 2,985
  • 1
  • 26
  • 28
2
votes
1 answer

System.net, httpPOST compatibility between mono and .Net

I'm tring to write a little program to download a PDF from a newspaper website that requires a login. I'm using this library found on stackoverflow: http://pastebin.com/RPNU39vF And I call it with this code: private void backupFunzionante() …
Neopard
  • 41
  • 4
1
vote
1 answer

Can't import System.Web namespace

I am trying to use: using System.Web.UI.HtmlControls; In windows forms, but it tells me a reference is missing. So I went in the add reference but System.Web isn't on the list. I even tried going to the physical location of System.Web.Dll but when…
TheGateKeeper
  • 4,420
  • 19
  • 66
  • 101
1
vote
2 answers

Reflection to avoid System.Web reference

I have a shared reporting dll that is used in both windows and web. I am now trying to move the windows programs to .NET 4 client profile so need to avoid System.Web references. At some points the code needs to get the directory of the website or…
PeteT
  • 18,754
  • 26
  • 95
  • 132
1
vote
1 answer

Could not load file or assembly 'System.Web.Services from Blazor project

I have a blazor project in .NET 6.0 I need to call a SOAP WebService (guide here) What I do is to import WSDL as Connected Service in another project of my solution with target framework NET4.8 The solution builds correctly, but when I debug and I…
Martina
  • 1,852
  • 8
  • 41
  • 78
1
vote
1 answer

HttpWebRequest Timeout updating status Code in BigCommerce

I have read a lot, if not all the posts, on timeouts for web requests and the solutions provided have not worked. I am getting orders from Big Commerce and then updating the Big Commerce status code. I can update 2 orders and then I timeout on the…
Susan
  • 21
  • 3
1
vote
1 answer

.NET Framework is not an option for Target Framework after installing

I had a default installation of VS Community 2019. Im trying to write a console app that automates some things my website is doing so I created a console project with the default settings -- VS automatically selected .NET Core 3.0. As I began began…
Jeff
  • 13,943
  • 11
  • 55
  • 103
1
vote
1 answer

Xamarin: Can not resolve reference: `System.Web`, referenced by [referenced project]

I'm using Xamarin with VS2019. The contained android project has recently started to give the following build errors. platform is android 8.1. I recently upgraded from VS2017. However everything was building ok until very recently. Severity …
rizla
  • 21
  • 3
1
vote
2 answers

'Response' does not contain a definition for 'Redirect'

I am trying to use the AspNetSaml nuget package (https://github.com/jitbit/AspNetSaml) and I am getting an error when trying to use the Response.Redirect(url) method. This is the error: Error CS0117 'Response' does not contain a definition for…
1
vote
1 answer

Why is the ObjectStateFormatter class in the System.Web.UI namespace?

Very straight forward question. As far as I can see from the MSDN page, it seems to be all about serialization and nothing to do with Web! MSDN: ObjectStateFormatter Class
William Mioch
  • 917
  • 9
  • 21
1
vote
1 answer

Returning response directly from HttpServer

I can across this the other day and it has me perplexed and I was hoping to get some light shed on the subject as to why this behavior is occurring. Here is an example of what I am working with: public class MyHttpServer : HttpServer { protected…
Jedi_Maseter_Sam
  • 753
  • 4
  • 24
1
vote
1 answer

Default or custom error page? - WebConfig custom error defaultRedirect

Preparing for an exam, Do you get the default error page if you don't specify the error code inside customError? I thought since you have defaultRedirect set, all errors regardless if they are accounted for specifically get sent to the…
Adam
  • 67
  • 5