Getting some code to run before any HTTP requests

Discussion in 'ASP .Net' started by Mark Friedman, Jun 26, 2003.

  1. Does anyone know if there is a way to get some code in an ASP.NET
    application to run even before any HTTP requests come in for that
    application? I have some timer based code that I would like to run on
    application start/load. I initially stuck it in my Application_Start event
    but that doesn't get fired until some HTTP request comes in to the server.
    Essentially, I want my code to start running when IIS (or perhaps more
    accurately, apsnet_sp.exe) is started or restarted.

    Thanks in advance.

    -Mark
    Mark Friedman, Jun 26, 2003
    #1
    1. Advertising

  2. Can't be done. The web application doesn't start until the first request
    comes in.

    HTH,

    Kevin Spencer
    Microsoft FrontPage MVP
    Internet Developer
    http://www.takempis.com
    Big things are made up of
    lots of Little things.

    "Mark Friedman" <> wrote in message
    news:...
    > Does anyone know if there is a way to get some code in an ASP.NET
    > application to run even before any HTTP requests come in for that
    > application? I have some timer based code that I would like to run on
    > application start/load. I initially stuck it in my Application_Start

    event
    > but that doesn't get fired until some HTTP request comes in to the server.
    > Essentially, I want my code to start running when IIS (or perhaps more
    > accurately, apsnet_sp.exe) is started or restarted.
    >
    > Thanks in advance.
    >
    > -Mark
    >
    >
    Kevin Spencer, Jun 26, 2003
    #2
    1. Advertising

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. Fernando Arámburu

    web requests and mobile requests

    Fernando Arámburu, Apr 8, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    443
    Joerg Jooss
    Apr 8, 2005
  2. Replies:
    3
    Views:
    505
    Salt_Peter
    Oct 5, 2006
  3. Python Maniac
    Replies:
    24
    Views:
    773
    Matt McCredie
    Sep 23, 2007
  4. Ruchira Bomiriya
    Replies:
    2
    Views:
    122
    Ruchira Bomiriya
    May 30, 2008
  5. Dave Garcia
    Replies:
    5
    Views:
    575
    Dave Garcia
    Jun 5, 2009
Loading...

Share This Page