Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Editing aspx/ascx files randomly disabled in Visual Studio 2010?

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.

like image 680
Herb Caudill Avatar asked Aug 10 '10 15:08

Herb Caudill


People also ask

How do I edit ASCX files?

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.

What file type is ASCX?

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.

What is ASCX page?

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.


2 Answers

Finally Microsoft came with a solution this year, you can download the fix here:

http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=40811

like image 184
Joost Schepel Avatar answered Oct 05 '22 06:10

Joost Schepel


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.

like image 22
OlafW Avatar answered Oct 05 '22 05:10

OlafW