I\'ll be debugging a site in Visual Studio 2010 and editing an *.aspx
or *.ascx
file, and without warning, it will lock up so that I can\'t edit it
I experienced the same issue, and found out that for me it occurred only in .aspx
pages with an "eval"
statement (used for databinding within e.g. a gridview) within tags. As soon as I removed the
"eval"
statements, the pages became editable again while debugging.
Example of code causing the page to be readonly while debugging:
'<%# Eval("Text") %>'
Example of replacement code causing the page to be editable again while debugging: