Global.asax does not fire method when loading static pages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • daonho
    New Member
    • Apr 2008
    • 18

    Global.asax does not fire method when loading static pages

    Hi Everyone,

    I have encountered this problem that I am not able to figure out. Please drop me some lines if you have any idea how to solve this issue. I have a global.asax file in my web site. It works fine as I wanted when loading aspx file; however, I have some static page in the same directory such as html and htm page. These page also load correctly and the global.asax file does fire when executing my .net development environment. However, when move these contents my an IIS (hosting server), the static pages (htm and html) does not trigger the global.asax file. Anyone know what's going on? Why doesn't static pages trigger global.asax methods? (dynamic pages still work fine )


    Thanks,
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Global.asax is meant to manage your web application. Your web application being a bunch of aspx pages that work together to accomplish something. It does not monitor static html pages.

    I have moved your question to the .NET forum; however, this may be an IIS question (and may have to be moved again).

    There is a way to configure your IIS to treat your static pages as custom error pages if that is your requirement.

    Please post your .NET questions in the .NET forum in the future. The ASP forum is dedicated to classic ASP questions.

    -Moderator Frinny

    Comment

    Working...