Last post Jan 13, 2012 12:53 PM by MetalAsp.Net
Jan 13, 2012 08:39 AM|leevis123|LINK
I've created a new ASP.NET Web Application for my project. While debugging, Visual Studio is not allowing me to make changes to my code behind (default.aspx.cs).
When I try, I get the "Edit and Continue" dialog letting me know that "Changes are not allowed while code is running or if the option 'Break all processes when one process breaks' is disabled.
Am I missing an option somewhere? I've created numerous other ASP.NET Web Applications in the past and have always been able to modify my code behind while running the Development Server.
Jan 13, 2012 08:43 AM|kedarrkulkarni|LINK
make sure that in the solution configuration list box on toolbar, u have selected mode as Debug instead of Release...
hope this helps...
Jan 13, 2012 08:46 AM|leevis123|LINK
It is set to Debug, thx.
Jan 13, 2012 08:58 AM|kedarrkulkarni|LINK
doe is solve the issue.... if not you can enable code editting in debug mode by followingthis
Jan 13, 2012 09:09 AM|leevis123|LINK
Thanks for your response kk. I ran across that suggestion earlier but unfortunately it doesn't resolve the issue I'm having. Enable and Continue was already enabled by default.
Jan 13, 2012 09:23 AM|MetalAsp.Net|LINK
Did you also enable edit & continue on the web application project properties also? There are two places this needs to be enabled. Also, to be clear, you need to be stopped at a breakpoint in the code for you to be able to make code changes.
Edit: it's on the Web tab of the project properties.
Jan 13, 2012 09:50 AM|leevis123|LINK
Yes, it was enabled on the project properties as well.
I've always been able to make changes to my code behinds while the development server is running. In my case, it won't allow me to make a change even when after the page has been loaded and the development server is sitting idle. I have to stop the dev server,
make my change, and restart it. Thx MetalAsp - rock on dude.
Jan 13, 2012 12:53 PM|MetalAsp.Net|LINK