How often have you got this message when you try to edit your source while debugging? "Changes are not allowed while code is running"
Notice the lock icon next to the filename, showing its read only.
This is a feature of VS that allows you to change the code and continue running with the modified code.
It seems to be only useful for desktop applications, not web apps that we develop.
We know that if we change code in the binary then we will need to recompile anyway, so how do we turn off this annoying message.
To remove the message, turn off Edit and Continue by:
Going to options
Go to Debugging, Edit and Continue and uncheck the top box
By turning off Edit and Continue, you still can create and remove debug points why the process is paused.
And you can still edit aspx’s, ascx’s, and their code besides (in the web application) without problems.