Getting some code to run before any HTTP requests

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Getting some code to run before any HTTP requests

    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 Guest

  2. Similar Questions and Discussions

    1. Can't send HTTP POST requests
      Hi, Flex3 Pro vs. J2EE All HTTP requests with method=POST are received by server as GET requests. At first I thought the problem was with the...
    2. HTTP Error Code 502 Bad Gateway
      I use IIS 5.1 ,mysql-4.0.20d, PHP 5.0.4, winXP SP2, Dreamweaver MX2004, Can't connection mysql and show error "HTTP Error Code 502 Bad Gateway, how...
    3. Can we view a single Asp.net page as one 'critical section' for identical http requests?
      How does ASP.NET process requests labeled with same sessionID/AuthID? Is it in defined order, such as FIFO or undefined order? For example: An...
    4. Help! Web Companion Goes Deaf to http Requests
      Interesting, in that I just found this newsgroup today becuase of this exact same problem in Unlimited 6 with web Companion.... periodically it just...
    5. Module of sending http 1.1 and/or 1.0 requests
      Anybody knows what perl module I can use to specify the http request as http 1.1 or 1.0? It seems I can't do that with http::request. Thank you. ...
  3. #2

    Default Re: Getting some code to run before any HTTP requests

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

    HTH,

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

    "Mark Friedman" <bingster@yahoo.com> wrote in message
    news:eOMvbFAPDHA.3408@tk2msftngp13.phx.gbl...
    > 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 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139