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.
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.
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.
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.
That's one thing that's a bit if a pain with web application projects. Even when I make an edit to the code, it prompts me to restart the application because it has to recompile the source. Unlike in a website project where that happens seemlesy without having
to restart.
leevis123
Member
6 Points
4 Posts
Unable to make changes to ASP.NET Code Behind while Debugging
Jan 13, 2012 12:39 PM|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.
Thanks.
kedarrkulkar...
All-Star
35547 Points
5696 Posts
Re: Unable to make changes to ASP.NET Code Behind while Debugging
Jan 13, 2012 12:43 PM|LINK
make sure that in the solution configuration list box on toolbar, u have selected mode as Debug instead of Release...
http://msdn.microsoft.com/en-us/library/wx0123s5.aspx
hope this helps...
KK
Please mark as Answer if post helps in resolving your issue
My Site
leevis123
Member
6 Points
4 Posts
Re: Unable to make changes to ASP.NET Code Behind while Debugging
Jan 13, 2012 12:46 PM|LINK
It is set to Debug, thx.
kedarrkulkar...
All-Star
35547 Points
5696 Posts
Re: Unable to make changes to ASP.NET Code Behind while Debugging
Jan 13, 2012 12:58 PM|LINK
doe is solve the issue.... if not you can enable code editting in debug mode by followingthis
http://msdn.microsoft.com/en-us/library/7yty6a48(v=VS.90).aspx
hope this helps...
KK
Please mark as Answer if post helps in resolving your issue
My Site
leevis123
Member
6 Points
4 Posts
Re: Unable to make changes to ASP.NET Code Behind while Debugging
Jan 13, 2012 01:09 PM|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.
MetalAsp.Net
All-Star
112699 Points
18359 Posts
Moderator
Re: Unable to make changes to ASP.NET Code Behind while Debugging
Jan 13, 2012 01:23 PM|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.
leevis123
Member
6 Points
4 Posts
Re: Unable to make changes to ASP.NET Code Behind while Debugging
Jan 13, 2012 01:50 PM|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.
MetalAsp.Net
All-Star
112699 Points
18359 Posts
Moderator
Re: Unable to make changes to ASP.NET Code Behind while Debugging
Jan 13, 2012 04:53 PM|LINK