Got this error today while tinkering with some code in Visual Studio 2013: “Changes are not allowed while code is running”.
I did click run earlier to check on something, but I had closed out the browser. So, to me, the code wasn’t running. But really it was. I scratched my chin for a second then remembered that I have to actually “stop” the code within Visual Studio because it will “run” even though it isn’t doing anything (because I had closed the browser).
First I of course clicked OK on the dialog box, then I clicked the red stop button that my arrow is pointing to above. That stopped the running code and allowed editing once again. Pretty simple error, and pretty simple fix, but it might be helpful to someone else out there.
Happy coding!