Questions tagged [ihttphandler]

Defines an endpoint in the ASP.NET pipeline for processing a request.

http://msdn.microsoft.com/en-us/library/system.web.ihttphandler(v=vs.100).aspx

All requests in the ASP.NET pipeline must eventually be handled by a class implementing the IHttpHandler interface. The handler is defined in either the system level web.config and can be overridden and website and subsite levels through the configuration inheritence chain.

The handler is usually mapped to one or more extensions (.aspx, .axd, .ascx, etc) may all be handled by Page Handler.

More details and explanation of how this interacts with the ASP.NET Request/Response pipeline may be found here.

244 questions
11
votes
4 answers

Why does IHttpAsyncHandler leak memory under load?

I have noticed that the .NET IHttpAsyncHandler (and the IHttpHandler, to a lesser degree) leak memory when subjected to concurrent web requests. In my tests, the Visual Studio web server (Cassini) jumps from 6MB memory to over 100MB, and once the…
Anton
  • 4,554
  • 2
  • 37
  • 60
7
votes
2 answers

Async Await Handler Deadlock

I'm stuck in an Async deadlock and I can't figure out the correct syntax to fix it. I've looked at several different solutions, but can't seem to quite figure out what is causing the problem. I am using Parse as a backend and trying to use a handler…
Barry Tormey
  • 2,966
  • 4
  • 35
  • 55
7
votes
1 answer

Error when calling MvcHttpHandler.ExecuteRequest from custom IHttpHandler

I have a custom IHttpHandler that calls MvcHttpHandler implemented as described in this answer. It worked well in asp.net MVC2, but after I migrate the code to MVC4 with IISExpress 7.5, I start getting InvalidOperationException on the…
ni5ni6
  • 453
  • 6
  • 13
6
votes
0 answers

Self Hosting and IHttpHandler (ashx service)

I need to self host (in a windows process out of IIS) an existing .ashx service. The service implements an IHttpHandler.
Robert
  • 872
  • 1
  • 8
  • 24
6
votes
1 answer

Use custom route handler with MVC5 attribute routing

Using the library AttributeRouting, I was able to configure attribute routing to use a custom route handler (inheriting MvcRouteHandler): routes.MapAttributeRoutes(cfg => { cfg.UseRouteHandler(() => new MultiCultureMvcRouteHandler()); …
5
votes
4 answers

How to obtain a reference to the default ASP.NET page handler or web-services handler?

Consider a Web.config file containing the following httpHandlers declaration: In other words, this handler factory wants to “see” all incoming requests so…
Timwi
  • 65,159
  • 33
  • 165
  • 230
5
votes
1 answer

Difference asp.net web service and Ihttphandler

Simple task like make AJAX request , pass one parameter and return result, can be done with Web Service and IHttpHandler, so where is the difference ?
user60595
5
votes
5 answers

Uploadify ashx file Context.Session gets null

I have a file upload in my site which is done using uploadify it uses a ashx page to upload file to database.It works fine in IE but in Mozilla the context.Session is getting null.I have also used IReadOnlySessionState to read session. how can i get…
deepu
  • 1,993
  • 6
  • 42
  • 64
5
votes
1 answer

random ordered request for jQuery Autocomplete on C# IHttphandler

I've got a autocomplete textbox requesting an IHttphandler via IIS7 written in C#. But the requests that get to the webserver seems to arrive unorder. Here is an example of the log I get from the IHttpHandler after typing 'guidolin' 406302…
Pitming_Reloaded
  • 541
  • 2
  • 5
  • 12
5
votes
3 answers

ASP.Net HttpHandler ProcessRequest() firing twice

I have a strange issue where i have a a HttpHandler having its ProcessRequest() event firing twice. i have nothing else in the class except a pointer to a static method so i'm lost. I have done some googling to no avail even thought it appears a few…
Doug
  • 6,460
  • 5
  • 59
  • 83
5
votes
3 answers

Resizing Images using HTTP Handler ASP.Net, some images not showing up

I'm at my wits end here. I've a HTTP Handler (ImageHandler.ashx) that sends down images (resized), its a standard HTTP handler (tried this with Reusable true and false) that uses the Image.GetThumbnailImage to resize and return the thumbnail. I've…
Rakesh
  • 654
  • 4
  • 10
  • 23
5
votes
1 answer

File transfer eating a lot of CPU

I'm trying to transfer a file over a IHttpHandler, the code is pretty simple. However when i start a single transfer it uses about 20% of the CPU. If i were to scale this to 20 simultaneous transfers the CPU is very high. Is there a better way I can…
Dan C.
  • 559
  • 3
  • 8
  • 26
5
votes
2 answers

ASP.NET C# OutofMemoryException On Large File Upload

I have the following file upload handler: public class FileUploader : IHttpHandler { public void ProcessRequest(HttpContext context) { HttpRequest request = context.Request; context.Response.ContentType = "text/html"; …
Babu James
  • 2,740
  • 4
  • 33
  • 50
4
votes
1 answer

httpModules not work with iis 7.5 for url rewriting/extention less url (give error 500.0)

I am using URL rewriting with IHttpModule. Application work on local but on server application give error if I written path without extension (aspx). I had register URL rewriting module in web config like
JD Varu
  • 216
  • 1
  • 2
  • 9
4
votes
1 answer

VB.NET 2.0: Where does a URL in code come from?

I have to debug an old VB.NET 2.0 code of someone who has left the company. We have a production system (let us call it http://prod) and a test system (http://test). Both are nearly similiar including a documents repository. When looking at docs in…
Joey
  • 511
  • 6
  • 20
1
2
3
16 17