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. There's no message or anything, I just can't type or make any changes.
The only way to start editing again is to stop debugging, close the editing window, and then find whatever file I was working on and reopen it. It's a huge pain in the you-know-what.
My colleagues are experiencing the same thing, so it's apparently not something with my particular setup.
What's the explanation, and how can we make it stop?
Note 1: I've reported this to Microsoft here. If you've experienced this as well, please go there and vote up the bug report.
Note 2: This is not VSS-related, at least in my case. We use VisualSVN, which doesn't use file-system-level locking to mark files as checked out.
How to Open an ASCX File. Microsoft's Visual Web Developer and Visual Studio can open and edit ASCX files, as well as Adobe's Dreamweaver. If you need to open an ASCX file on a Mac, TextMate should work.
An ASCX file is a webpage that can be used as a component of other webpages. For example, a navigation bar called navbar. ascx might be referenced by all pages within an ASP-driven website.
ascx file, also known as a user control, requested from a server that hosts an ASP.NET Web application. The file must be called from a Web Forms page or a parser error will occur.
Finally Microsoft came with a solution this year, you can download the fix here:
http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=40811
I've found a temporary workaround-solution: Right-click on the file and select "Open with...". Now select "Source Code (Text) Editor" and you can edit the file again but without IntelliSense :-( But you won't need an external editor.
Nevertheless we still have to wait for Microsoft to find a better solution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With