Re: URGENT: Application_Start - doesn't fire

From: Alvin Bruney [Microsoft MVP] (www.lulu.com/owc)
Date: 02/27/05


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!
>>
>
> 


Relevant Pages

  • URGENT: Application_Start - doesnt fire
    ... Server 2003 production server. ... In IIS Manager I have ensured that there is a unique Application name in the ... database. ... requested that I get a general HTTP exception - but on the second request ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Add internal web site
    ... I assume from within IIS Manager, you selected 'New Web Site', you gave it a ... SharePoint can be as easy or as complex as we want to make it. ... I want to read the info from my vehicle database in acces and post pages to ... BTW, since this is a standard web site and you want to store information, ...
    (microsoft.public.windows.server.sbs)
  • Re: URGENT: Application_Start - doesnt fire
    ... first request. ... > the Home Directory tab of the Properties for the Web site in question. ... > stopped and started the Web site via IIS Manager. ... > log in (and the credentials are verified against a table in the database). ...
    (microsoft.public.dotnet.framework.aspnet)
  • nside MySpace.com 1.
    ... never have to bear more than a small fraction of the traffic MySpace ... the Web site displays what he calls "the ... database, with MySpace users frequently seeing a Web page headlined ... database and storage systems to try to keep pace with exploding growth, ...
    (microsoft.public.windows.server.general)
  • And yet another one from the mind of Lohkee!
    ... Internet Content Blocking Software ... Some organizations that allow employees to surf the net have ... a database of websites that have been categorized by type of the content ... existence of a web site before you can categorize it. ...
    (comp.security.misc)