Re: URGENT: Application_Start - doesn't fire
From: Alvin Bruney [Microsoft MVP] (www.lulu.com/owc)
Date: 02/27/05
- Next message: Sandy: "Re: Is Paging possible with Treeview?"
- Previous message: Alvin Bruney [Microsoft MVP]: "Re: Passing E-mail Address in a Cookie"
- Next in thread: Gordon Smith: "Re: URGENT: Application_Start - doesn't fire"
- Reply: Gordon Smith: "Re: URGENT: Application_Start - doesn't fire"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 27 Feb 2005 17:31:51 -0500
>So that tells me it's something about asp.net.
Nope, asp.net is not responsible for serving htm files by default.
Your application start is firing correctly because you can request a page.
Your logic and steps you have taken does not indicate a problem with your
application_start handler. Rather, the problem seems to be with the code
that fires inside the application_start handler. Try re-writing with some
error handling code first to see what gives.
-- Regards Alvin Bruney [Shameless Author Plug] The Microsoft Office Web Components Black Book with .NET available at www.lulu.com/owc -------------------------------------------------- "Gordon Smith" <GS@NoSpam.net> wrote in message news:%23H76KFRHFHA.3912@TK2MSFTNGP10.phx.gbl... > One more observation: > When I have a simple default.htm - that page gets served just fine on the > first request. When I have a simple default.aspx - it chokes. So that > tells me it's something about asp.net. > > Still needing ideas here... thanks. > > > "Gordon Smith" <GS@NoSpam.net> wrote in message > news:%23mP1XRQHFHA.3612@TK2MSFTNGP09.phx.gbl... >>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! >> > >
- Next message: Sandy: "Re: Is Paging possible with Treeview?"
- Previous message: Alvin Bruney [Microsoft MVP]: "Re: Passing E-mail Address in a Cookie"
- Next in thread: Gordon Smith: "Re: URGENT: Application_Start - doesn't fire"
- Reply: Gordon Smith: "Re: URGENT: Application_Start - doesn't fire"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|