URGENT: Application_Start - doesn't fire

From: Gordon Smith (GS_at_NoSpam.net)
Date: 02/27/05


Date: Sun, 27 Feb 2005 11:41:35 -0800

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!



Relevant Pages

  • Re: URGENT: Application_Start - doesnt fire
    ... Your application start is firing correctly because you can request a page. ... I have>> stopped and started the Web site via IIS Manager. ... This particular Web application connects to a>> database. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Using SQl to store aspx pages and memory problems
    ... I've seen classic ASP applications design this way that work ... database isn't some sort of magic pixie dust that solves all problems. ... > the memory increases - the slowness of the request could be dealt with by ... >> takes to get the page from SQL Server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Need Help To Create a Function For Parameter Query
    ... >> function up with prompts ... > adds your question and the answers to the database of answers. ... >> I have a query named Status. ... >> Request Date. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Simple (?) Singleton Question
    ... actually being created with each request. ... Wherever you need the singleton, you just have to call the getInstance ... I might have several business classes which access tables in the database. ... The singleton class for the database means each of the business classes can get the one instance of the database class. ...
    (comp.lang.php)
  • HTMLText Interpretation generates runtime error
    ... I am using Crystal Reports integrated with MicroSoft Visual Studio.Net ... Database is MS Access 2003 and OS is ... The request could not be submitted for background processing. ... Exception Details: CrystalDecisions.CrystalReports.Engine.InternalException: ...
    (microsoft.public.vb.crystal)

Loading