HighTechTalks DotNet Forums  

Global.asax

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss Global.asax in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Victorious1
 
Posts: n/a

Default Global.asax - 10-09-2007 , 08:31 AM







I am putting instructions for the application_OnStart event into my
global.asax file but it seems as if the file is not being used when I debugg;
I have tried using stops in the code to see if I actually use the event. Is
there something I need to do to get the application to use the global.asax in
..net 1.1.

Reply With Quote
  #2  
Old   
Peter Bromberg [C# MVP]
 
Posts: n/a

Default RE: Global.asax - 10-09-2007 , 10:07 AM






It only fires once - when the application first starts. If your app is still
running in the AppPool in IIS or in the Development webserver,
Application_Start won't fire a second time.

You can kill the ASPNET_WP.EXE or W3WP.EXE process out of task manager
before you start debugging again.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com



"Victorious1" wrote:

Quote:
I am putting instructions for the application_OnStart event into my
global.asax file but it seems as if the file is not being used when I debugg;
I have tried using stops in the code to see if I actually use the event. Is
there something I need to do to get the application to use the global.asax in
.net 1.1.

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.