Questions tagged [httphandler]

HttpHandlers are classes that implement the IHttpHandler and IHttpAsyncHandler interfaces. This section describes how to create and register HttpHandlers and provides examples of a synchronous handler, an asynchronous handler, and a handler factory.

ASP.NET Request Processing

Introduces ASP.NET handling of HTTP requests.

Creating HttpHandlers

Discusses the creation of synchronous and asynchronous HttpHandlers.

Registering HttpHandlers

Describes how ASP.NET is configured to call an HttpHandler.

HttpHandler Factory

Describes how to generate a new handler instance for each HTTP request.

Related Sections

HTTP Runtime Support

Provides an overview of how to use IHttpModule and IHttpHandler interfaces. 

HttpModules

Provides an overview of HttpModules. 
1249 questions
26
votes
3 answers

IRequiresSessionState vs IReadOnlySessionState

What is the difference between IRequiresSessionState and IReadOnlySessionState beside the inability of the second to save changes to the session variables? Both provide me the ability to access session variables in my HttpHandler. But why would I…
Oleg Grishko
  • 4,132
  • 2
  • 38
  • 52
25
votes
3 answers

Unable to map an HttpHandler to a "path/*" wildcard mapping

So I've been trying to map an http module to a sub-path of an MVC3 site. It should be pretty simple as I understand it, but it has not been working. The module is setup like so:
Chris Nicola
  • 14,384
  • 6
  • 47
  • 61
24
votes
14 answers

The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file

The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add
rahularyansharma
  • 11,156
  • 18
  • 79
  • 135
23
votes
2 answers

How to use Generic Handlers (ASHX) in ASP.NET MVC?

I need a image generator in my ASP.NET MVC application, but I don't know if it is possible to use ASHX in ASP.NET MVC. If there is an class similar to IHttpHandler that inherits IViewDataContainer, then I could use ViewData.Model on my ASHX. I read…
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
22
votes
5 answers

How do get clean URLs like Stack Overflow?

On some .NET driven sites URLs don't end with asp.net page names, like default.aspx, instead they use a pattern http://sitename.com or http://sitename.com/subdirectory/subdirectory. The site is mapped as sub directories off the root, ie. /tags,…
Shankar
  • 1,634
  • 1
  • 18
  • 23
21
votes
2 answers

Any way to add HttpHandler programmatically in .NET?

I've been researching this a bit but haven't come across an answer -- is there any way to programatically add an HttpHandler to an ASP.NET website without adding to the web.config?
Ryan Lanciaux
  • 5,965
  • 2
  • 37
  • 49
20
votes
8 answers

Using a colon (:) in a url with ASP.NET/IIS

I'm implementing a custom controller in ASP.NET MVC and really want to be able to use a colon in the urls, so that I can identify class/column names and their values, like so: http://example.com/user:chaiguy ...but apparently ASP.NET or IIS doesn't…
devios1
  • 36,899
  • 45
  • 162
  • 260
20
votes
1 answer

HTTP modules and HTTP handlers in ASP.Net MVC?

I was asked a question in interview that how to implement HTTP module and HTTP handler in ASP.Net MVC. I know that they are used in ASP.Net to write pre-processing logic before the aspx page is called. But in ASP.Net MVC we have filters for that so…
rohit singh
  • 1,239
  • 3
  • 15
  • 26
20
votes
2 answers

ASP.NET MVC Route: bypass staticfile handler for path

I've been googling and tinkering for a couple hours and haven't really made much progress, so hopefully someone here can help. I'm trying to get all requests to a certain path to be handled by a 3rd party component. EDIT And I need all requests to…
jmoss
  • 203
  • 1
  • 2
  • 5
19
votes
4 answers

Diagnosing 404 errors on IIS 7 and ASP.NET MVC

I have an mvc app developed and tested with Cassini. Deployed to my site on GoDaddy, and the default page comes up fine. Click to log in, and I get a 404. I'm running under IIS 7 there, so this is unexpected. My routes are pretty plain: …
Stuart
  • 1,572
  • 4
  • 21
  • 39
19
votes
3 answers

Disabling ASP.NET HttpHandler response caching

Background I'm in the midst of comparing the performance of NancyFx and ServiceStack.NET running under IIS 7 (testing on a Windows 7 host). Both are insanely fast - testing locally each framework processes over 10,000+ req/sec, with ServiceStack…
Kevin Pullin
  • 13,122
  • 3
  • 24
  • 33
19
votes
3 answers

Something faster than HttpHandlers?

What is the fastest way to execute a method on an ASP.NET website? The scenario is pretty simple: I have a method which should be executed when a web page is hit. Nothing else is happening on the page, the only rendered output is a "done" message. I…
Jakob Gade
  • 12,319
  • 15
  • 70
  • 118
18
votes
2 answers

High Performance ASP.NET Site (> 1000 Request/Second)

I am writing a High Performance ASP.NET Json API with soon > 1000 Request/Second. All my logic and processing is done in an IHttpHandler. I measured via Stopwatch Class and the handler finishes a request in around 0,1 - 0,5 Millisecond. But it…
TobiHeidi
  • 1,201
  • 2
  • 14
  • 23
18
votes
3 answers

VS2010 development web server does not use integrated-mode HTTP handlers/modules

I am developing an ASP.NET MVC 2 web site, targeted for .NET Framework 4.0, using Visual Studio 2010. My web.config contains the following code:
Domenic
  • 110,262
  • 41
  • 219
  • 271
18
votes
11 answers

How do you debug ASP.net HTTPHandler

I have set a breakpoint in an HttpHandler in visual studio. The HttpHandler is an .ashx file I am trying to debug by running my application in the VS development web server. My breakpoint is not getting hit. How can I step through it? Edit: My…
Ronnie Overby
  • 45,287
  • 73
  • 267
  • 346
1
2
3
83 84