By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,558 Members | 1,533 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,558 IT Pros & Developers. It's quick & easy.

Global.asax does not fire method when loading static pages

P: 18
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,
Oct 8 '08 #1
Share this Question
Share on Google+
1 Reply


Frinavale
Expert Mod 5K+
P: 9,731
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
Oct 8 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.