How to run code whenever asp process starts?

C

cremoni

How can I get a notification when ASPNET_WP starts? I need some way of
starting the app automatically when the ASP process is restarted.

Basically, we're just trying to make sure that our server app is always
running. When ASPNET_WP gets "randomly" restarted our app gets shut
down and doesn't start up again until somebody accesses a page.

I did try Karl's solution, but I only seem to get called when somebody
actually loads a page. I can't wait until somebody manually starts the
app - this process needs to always be running.

Of course, I was working on a debug machine, so my test environment
does not mirror a real-world app very well.
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top