Application_Start event in Global.asax doesnt start?

Discussion in 'ASP .Net' started by gamesforums@hotmail.com, Oct 18, 2007.

  1. Guest

    Hi! I have some code within the Application_Start event in Global.asax
    that runs a sqlscript against my sql server to check the
    databasversion. My problem is that sometimes the Application_Start
    event doesnt fire, it skips it and goes directly to my default.aspx
    file.

    I do the following:
    1. IISReset.
    2. Deploy application files.
    3. Start http://localhost/default.aspx

    Sometimes the Application_Start is fired, other times it doesnt. Ihave
    seen that this more often do happen in my production environment(IIS
    6.0, Windows Server 2003) than on my developer machine.

    Any ideas?

    Regards... Mcad
     
    , Oct 18, 2007
    #1
    1. Advertisements

  2. re:
    !> I do the following:
    !> 1. IISReset.
    !> 2. Deploy application files.
    !> 3. Start http://localhost/default.aspx

    Try this order :

    1. Deploy application files.
    2. IISReset
    3. Start http://localhost/default.aspx




    Juan T. Llibre, asp.net MVP
    asp.net faq : http://asp.net.do/faq/
    foros de asp.net, en espaƱol : http://asp.net.do/foros/
    ======================================
    <> wrote in message news:...
    > Hi! I have some code within the Application_Start event in Global.asax
    > that runs a sqlscript against my sql server to check the
    > databasversion. My problem is that sometimes the Application_Start
    > event doesnt fire, it skips it and goes directly to my default.aspx
    > file.
    >
    > I do the following:
    > 1. IISReset.
    > 2. Deploy application files.
    > 3. Start http://localhost/default.aspx
    >
    > Sometimes the Application_Start is fired, other times it doesnt. Ihave
    > seen that this more often do happen in my production environment(IIS
    > 6.0, Windows Server 2003) than on my developer machine.
    >
    > Any ideas?
    >
    > Regards... Mcad
    >
     
    Juan T. Llibre, Oct 18, 2007
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Max
    Replies:
    5
    Views:
    22,302
    liliancho
    Dec 7, 2011
  2. Bob Johnson
    Replies:
    4
    Views:
    1,312
    George Durzi
    Nov 13, 2003
  3. Jeanne Louw
    Replies:
    2
    Views:
    6,666
    Alvin Bruney
    Jan 13, 2004
  4. =?Utf-8?B?YmNoYXJsZXM=?=

    global.asax and global.asax.cs

    =?Utf-8?B?YmNoYXJsZXM=?=, Oct 4, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    1,274
    =?Utf-8?B?YmNoYXJsZXM=?=
    Oct 5, 2004
  5. Marc Missire
    Replies:
    3
    Views:
    4,035
    Marc Missire
    Jul 25, 2005
  6. =?Utf-8?B?Tm9OaWNrbmFtZQ==?=

    ASP.NET 2/Global.asax/code-behind/Application_Start

    =?Utf-8?B?Tm9OaWNrbmFtZQ==?=, Nov 9, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    6,555
    Juan T. Llibre
    Nov 9, 2005
  7. Mark Rae

    Global.asax / Global.asax.cs in v2

    Mark Rae, May 23, 2006, in forum: ASP .Net
    Replies:
    6
    Views:
    3,525
    Mark Rae
    May 23, 2006
  8. Replies:
    4
    Views:
    1,047
    Juan T. Llibre
    Oct 19, 2007
Loading...