Questions tagged [httpapplication]

Defines the methods, properties, and events that are common to all application objects in an ASP.NET application. This class is the base class for applications that are defined by the user in the Global.asax file.

63 questions
61
votes
3 answers

HTTPModule Event Execution Order?

Does anyone know of a site or page, or know the order of execution for the events of the HTTPApplication class for HTTPModule event execution? I found the MSDN Documentation for all of the events, but it doesn't show a list of process steps and I…
Adron
  • 2,371
  • 7
  • 25
  • 30
43
votes
2 answers

AuthenticateRequest event

Q 1. To my understanding FormsAuthenticationModule is subscribed to AuthenticateRequest event, and thus only after this event is fired, is FormsAuthenticationModule called. But the following quotes got me a bit confused: The AuthenticateRequest…
SourceC
  • 3,829
  • 8
  • 50
  • 75
23
votes
2 answers

Why is HttpApplication constructor called several times

Can somebody explain why the constructor of a custom class derived from HttpApplication is called several times upon application startup? My code structure is the following: - My Global class in global.asax derives from CustomApp class. - The…
Andy
  • 2,670
  • 3
  • 30
  • 49
15
votes
2 answers

Where do I catch and handle maxAllowedContentLength exceeded in IIS7?

I have an aspx page where I’m allowing a user to upload a file and I want to cap the max file upload size to be 10MB. IIS7, .NET 3.5. I have the following configured in my web.config file: