Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to recycle IIS Express without stop Debugging?

I came across with a problem related to recycling the iis and statics variables (more specifically: dictionaries) problems in which the statics Dictionaries lose their values ​​and keys when the pool is recycled.

But this problem can only simulate in the production ambient. In development I can't simule :(

I had the idea of ​​using IIS Express to simulate debugging the problem, but to do this I need to recycle the IIS Express without stopping to debug.

Is there a way to do this? If not, does anyone have any idea how I can simulate this problem to fix it?

like image 781
Only a Curious Mind Avatar asked Sep 25 '14 17:09

Only a Curious Mind


People also ask

How do I stop the IIS Express worker process?

Closing IIS Express By default Visual Studio places the IISExpress icon in your system tray at the lower right hand side of your screen, by the clock. You can right click it and choose exit. If you don't see the icon, try clicking the small arrow to view the full list of icons in the system tray.


1 Answers

The apppool will recycle if you modify your App\Web.config. Unfortunately you'll have to do it via explorer/notepad, as Visual Studio will tell you to stop debugging if you try.

like image 178
Richard Szalay Avatar answered Sep 28 '22 17:09

Richard Szalay