G
Gordon Smith
I have four (4) ASP.NET Web applications/Web sites on a IIS/6 - Windows
Server 2003 production server. 3 of them work fine. I just installed the 4th
one and it's Application_Start event is not firing.
I have double-checked everything (and rechecked) and I haven't found
anything that would explain why the Application is not starting.
Here is what I have done so far to troubleshoot this:
In IIS Manager I have ensured that there is a unique Application name in the
Home Directory tab of the Properties for the Web site in question. I have
verified that the home directory path is specified correctly. All other
properties in IIS have identical values to the other sites that do work
corectly (or have site-specific values that make sense). I have stopped and
started the Web site via IIS Manager. I have verified correct content in
Web.config (which is virtually identical to the other site's Web.config
files). I have saved changes to Web.config in an effort to get the
application to restart. I have recompiled and reinstalled the dll.
I have verified that this particular Web app is in fact online and
functioning to some extent. This particular Web application connects to a
database (per settings in Web.config). I have verified that the application
is, in fact, connecting to the database because I was able to log in (and
the credentials are verified against a table in the database). Furthermore,
the Web site will serve up pages. I put in a simple "hello world!"
default.aspx which is served correctly. I also put in my standard
default.aspx which hits the database (and verified that it hit the database
when the page was requested). I will note that whenever *any* page is first
requested that I get a general HTTP exception - but on the second request
the page is served as expected. So, this Web site is online and "mostly"
available. The whole problem is that Application_Start does not fire - which
is a big problem because that's when I load important variables into the
Application state.
FWIW: Toward fixing this I created a new application pool via IIS Manager
and placed the Web application into it (and stopped/restarted the Web
site)... still no dice.
Any ideas for troubleshooting this? I really need Application_Start to fire.
Thanks!
Server 2003 production server. 3 of them work fine. I just installed the 4th
one and it's Application_Start event is not firing.
I have double-checked everything (and rechecked) and I haven't found
anything that would explain why the Application is not starting.
Here is what I have done so far to troubleshoot this:
In IIS Manager I have ensured that there is a unique Application name in the
Home Directory tab of the Properties for the Web site in question. I have
verified that the home directory path is specified correctly. All other
properties in IIS have identical values to the other sites that do work
corectly (or have site-specific values that make sense). I have stopped and
started the Web site via IIS Manager. I have verified correct content in
Web.config (which is virtually identical to the other site's Web.config
files). I have saved changes to Web.config in an effort to get the
application to restart. I have recompiled and reinstalled the dll.
I have verified that this particular Web app is in fact online and
functioning to some extent. This particular Web application connects to a
database (per settings in Web.config). I have verified that the application
is, in fact, connecting to the database because I was able to log in (and
the credentials are verified against a table in the database). Furthermore,
the Web site will serve up pages. I put in a simple "hello world!"
default.aspx which is served correctly. I also put in my standard
default.aspx which hits the database (and verified that it hit the database
when the page was requested). I will note that whenever *any* page is first
requested that I get a general HTTP exception - but on the second request
the page is served as expected. So, this Web site is online and "mostly"
available. The whole problem is that Application_Start does not fire - which
is a big problem because that's when I load important variables into the
Application state.
FWIW: Toward fixing this I created a new application pool via IIS Manager
and placed the Web application into it (and stopped/restarted the Web
site)... still no dice.
Any ideas for troubleshooting this? I really need Application_Start to fire.
Thanks!