Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute task when w3wp.exe recycles?

Status
Not open for further replies.

jdemmi

MIS
Jun 6, 2001
1,106
US
I have an asp.Net web application running on the 1.1 framework on a W2K3 server.

Because of large object heap issues the w3wp.exe engine recycles periodically throughout the day (based on settings in IIS)

This is not a problem...

But...when this happens I need to execute a task. Specifically I want to restart another windows service. More specifically I need to recycle CRXIR2 report application service.

I know I can create a small batch file for restarting the service but how can I execute it every time that w3wp.exe is recycled?

Ideas?

-- Jason
"It's Just Ones and Zeros
 
Look into the AppDomain object for an event like Quiting, ShuttingDown, Exiting, Unloading, Disposing etc. in this event place a Process object to restart the service. I'm not 100% sure about this, but it's where I would start. Also google running code before application unloads. (desktop or asp.net, doesn't matter.)

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top