Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3855804
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:49:58+00:00 2026-05-19T17:49:58+00:00

What is the difference between HttpApplication class and IHttpModule? Are they both same or

  • 0

What is the difference between HttpApplication class and IHttpModule? Are they both same or different?

I see articles that mention the same events in both the classes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T17:49:58+00:00Added an answer on May 19, 2026 at 5:49 pm

    HttpApplication is the web application instance that has multiple IHttpModule instances registered in it. That’s why every IHttpModule instance handles a certain part of application execution thus can usually be reused on many applications (think of a Session handling module or authentication module).

    In terms of application/request handling there are many similarities. HttpApplication has access to application-level events like OnStart, OnEnd etc as well as request-level events like OnBeginRequest, OnEndRequest etc. IHttpModule on the other hand only has access to request-level events.

    Additional note: It’s possible to handle application start and end events even using an IHttpModule, but this is a non-documented feature and you have to take some special precautions. Check these two blog posts that explain it all into great depth:
    Writing a custom IHttpModule that handles Application_OnStart event
    How to correctly use IHttpModule to handle Application_OnStart event

    I suggest you read a bit about application life cycle execution pipeline:

    • ASP.NET Application Life Cycle Overview for IIS 5.0 and 6.0
    • ASP.NET Application Life Cycle Overview for IIS 7.0
    • Walkthrough: Creating and Registering a Custom HTTP Module
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

//Difference between 2 dates This function works well but display wrong time format. Pls
Difference between Close() method and App.current.ShutDown() method ?
difference between Linux kernel and UNIX kernel(such as FreeBSD) from programmer's point of view.
.. the difference between the = and the == signs in Python? i.e provide
Hi What is the difference between set @flag=1 and set @@flag = 1 in
What is the difference between $.ajax() and $.get() and $.load() ? Which is better
What is the difference between the evaluation of == and Equals in C#? For
What exactly the difference between interpreted and compiled language.For example I want print the
For reasons I would rather not discuss, I need to create a custom authentication

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.