I implement some code in Application_Start and Application_End (global.asax).
When i start ASP.NET Developer Server the Application_Start run normally.
When i change the web.config file, the method Application_Start is called again but Application_End is never called.
Someone know how can i force Application_End run before the second call to Application_Start
My code opens a server socket in Application_Start, so Visual Studio couldn´t restart my application whitout closing it.
For safety VS don´t restart my Application.
VS calls Application_End only if he knows that noone is affected.
In my case i could be using the socket to sending or receiving data.