Saving the file 'web.config' requires you to stop your debug session error
asp.net, visual-studio-2012, web-config
Solution
I just want to add something to the comment that janv8000 made about Edit and Continue, because I've just been having the same problem and managed to sort it.
To give some background, I had an existing web application, created in VS 2012. When I debug this project in VS 2013, I can edit the web.config file happily without restarting the debugger. I then created a new web application in VS 2013, and found that I got the error message in the original question when I tried to edit the web.config file.
The solution to this was to disable Edit and Continue for the individual project. The reason I highlight this is because there's a global debugger setting in Tools->Options->Debugger for Edit and Continue. This is not the option that causes this problem.
To solve it:
- Go to the project preferences for your web application (right click on it in the solution explorer and go to "Properties").
- Go to the "Web" tab.
- At the bottom of this tab is a section called "Debuggers".
- Uncheck "Enable Edit and Continue".
Problem
I'm trying to make changes to web.config after running the application. It gives the following error. Saving the file 'web.config' requires you to stop your debug session. Would you like to stop debugging now? I'm using Visual Studio 2012. I thought it has to do something with `Enable Edit and Continue` feature in visual studio. Still doesn't work.