Global.asax Application_Start and Application Pool Recycling Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Aamir Mahmood

    Global.asax Application_Start and Application Pool Recycling Problem

    Hi
    I have a problem that just appeared to my application.

    I have some initialization code in Application_Sta rt function in global.asax
    but it is not being called when the application pool is recycled.
    Could you guys give me a clue what can cause this?
    thanks.
    AM


  • Peter  Bromberg [C# MVP]

    #2
    Re: Global.asax Application_Sta rt and Application Pool Recycling Problem

    If your application is really being restarted via IIS (not the Visual Studio
    Development Server) then the code you have in Application_Sta rt will always
    run. Do you want to post a code sample that illustrates your problem?
    Peter
    "Aamir Mahmood" <aamirmahmood@g mail.comwrote in message
    news:u9GgmLFwIH A.4912@TK2MSFTN GP03.phx.gbl...
    Hi
    I have a problem that just appeared to my application.
    >
    I have some initialization code in Application_Sta rt function in
    global.asax but it is not being called when the application pool is
    recycled.
    Could you guys give me a clue what can cause this?
    thanks.
    AM
    >

    Comment

    Working...