Getting some code to run before any HTTP requests

M

Mark Friedman

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
 
K

Kevin Spencer

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top