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

System.Web.ApplicationServices in .NET Core 2

I'm building a Web API in .NET Core 2. I'm using some custom nuget packages to leverage their built in functionality. These custom packages were built against an older .NET version (4.6.1). The problem is some of these packages have references to…
1
vote
1 answer

URL processing in .net Standard 2.0

I have a .net library (.net 4.6.1) which I would like to port to the .net Standard 2.0. I already tested it (on a windows box) and it seemed to work without problems. However in this library I have some functions which use the System.Web.HttpUtility…
HCL
  • 36,053
  • 27
  • 163
  • 213
1
vote
0 answers

The type or namespace name 'Http' does not exist in the namespace 'System.Web' - ASP.net asmx

I'm trying to write a method to handle Facebook webhooks challenge as so: using System.Web; using System.Web.Http; [HttpGet] public HttpResponseMessage Get() { var response = new…
Quit3Simpl3
  • 183
  • 2
  • 14
1
vote
1 answer

The type or namespace name 'IClientValidatable' could not be found - in .NET 4.7

I'm building an ASP.NET MVC app with VS 2017, targeting .NET 4.7, and I'm trying to build my models inside of business library being referenced by the web application. So I'm trying to get many of the same classes that come with an MVC project by…
KyleMit
  • 30,350
  • 66
  • 462
  • 664
1
vote
1 answer

How to fix "A virtual path is expected" from HttpServerUtility.TransferRequest?

In a custom class derived from System.Web.Mvc.ActionResult, I have the following line of code: HttpContext.Current.Server.TransferRequest(myUrl, true); In most situations, this works fine. But occasionally, it fails with the error: Uncaught error…
Jon Schneider
  • 25,758
  • 23
  • 142
  • 170
1
vote
0 answers

URL Validation Returning 'NOT FOUND' for Valid URLs

I'm using the following code to Validate URLs private Boolean CheckURL(string url) { using (MyClient myclient = new MyClient()) { try { myclient.HeadOnly = true; // fine, no content downloaded …
max
  • 11
  • 3
1
vote
1 answer

How to access ASP.Net Session object outside the web project (class library)

I am implementing a custom membership and role providers where I need to store all the role/membership information in the user's session. I am implementing these custom providers inside a class library project (different from the website project)…
Moiz Tankiwala
  • 6,070
  • 7
  • 38
  • 51
1
vote
1 answer

How do I tell if whether I am the "newest" ASP.NET app domain?

In ASP.NET/IIS, when a deployment happens or the web.config changes (or a few other scenarios), ASP.NET will spin up a new app domain for the site. The new app domain receives requests, while the old app domain is given some time to spin down…
ChaseMedallion
  • 20,860
  • 17
  • 88
  • 152
1
vote
0 answers

Can I deploy a System.Web dependent dnx451 project to Azure?

I am using an asp.net 5 and MVC 6 web application and a class library with a web service (WSDL). I can run the application fine locally on IIS express. I have been able to use localdb as well as Azure db. However, when I attempt to deploy the…
smulholland2
  • 1,143
  • 2
  • 14
  • 28
1
vote
1 answer

Mono ASP.Net MVC MissingMethod on HostingEnvironment.InClientBuildManager

I have an issue about running my ASP.Net MVC app on Mono. I got Ninject, Moq from NuGet, used them in the app and when I launched it I got MissingMethodException on HostingEnvironment.InClientBuildManager property's "get" method. Since I googled…
1
vote
1 answer

Can't programmatically access WebConfigurationManager in VS 2012

In my VS 2012 project, I have a reference to System.Web. If I browse System.Web in Object Brower, it contains System.Web.Configuration.WebConfigurationManager; but in my code, System.Web only shows me AspNetHostingPermission,…
1
vote
1 answer

HttpUtility.HtmlDecode fails to decode '

I am using .net 4.5 and HttpUtility.HtmlDecode fails to decode ' which is single quote character Any idea why ? Using C# .net 4.5 WPF on windows 8.1 Here the text that is failed Apple 13'' Z0RA30256 MacBook Pro Retina Below is framework…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
1
vote
0 answers

Adding a transparent image watermark using WebImage.AddImageWatermark

I'm trying to add a transparent watermark to a series of images using System.Web.Helpers.WebImage.AddImageWatermark, the original image is a .jpg. I've tried both .gif and .png with transparency but WebImage seems to ignore transparency and treat…
ChrisFletcher
  • 1,010
  • 2
  • 14
  • 31
1
vote
1 answer

The call is ambiguous between the following methods - Kendo UI

I recently migrated a web application from Telerik Mvc to Kendo UI, but I'm running into a snag that I'm not too sure how to modify since I've been learning more about and getting used to Kendo UI the past week. Here is the problem I'm running…
Ogreintel
  • 1,143
  • 2
  • 11
  • 15
1
vote
1 answer

Rewrite path for a requested image from a HttpModule

I've developed an IIS HTTP module that does dynamic image resizing. It looks at the incoming URL and performs a regex to determine if the URL is a match for that images that we want to resize, and pulls out the requested image size (thumbnail, large…
Steven Sproat
  • 4,398
  • 4
  • 27
  • 40