How do I dispose of IIS Express without stopping? Debugging?

I ran into a problem with the recycle of iis and statics variables (more specifically: dictionaries), where Statics dictionaries lose their values ​​and keys when the pool is reworked.

But this problem can only be modeled in the manufacturing environment. In development, I cannot simulate :(

I got the idea to use IIS Express to simulate debugging a problem, but for that I need to rework IIS Express without stopping to debug.

Is there a way to do this? If not, can anyone understand how I can simulate this problem in order to fix it?

+3


source to share


2 answers


When your App \ Web.config changes, the application will be reworked. Unfortunately, you will have to do this through explorer / notepad as Visual Studio will tell you to stop debugging if you try.



+9


source


I understand that this is impossible. Part of the point of scrapping is to stop and start the process that breaks the debugger nesting.



In terms of solving the problem of static variables, consider storing this datatype in an external storage like Redis. It is a great way to store data that needs to be processed in applications and is extremely fast and stable.

+1


source







All Articles