Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2008 hangs while opening aspx/ascx file

I've issue with VS08. I've got Web Application project (vb.net). Whenever I try to open an aspx or ascx (in Source view - just double clicking on Solution Explorer) the file opens, but VS hangs and is not responding. The only way to restart VS is then by killing it's process. And it happens all the time with these types of files. :/ Reinstall didn't work.

In addition, the only plugin I've installed with this instance of VS is ClearCase source control plugin.

like image 743
rafek Avatar asked Mar 18 '09 07:03

rafek


3 Answers

This clearly looks like a problem with the "Microsoft Visual Studio Web authoring Component" program. Simply pressing Change from Programs and selecting Repair fixed the issue for me. Now I can use the design look also. This happened for me when I installed Office 2010.

like image 135
Viktor Einarsson Avatar answered Nov 02 '22 20:11

Viktor Einarsson


You should try to remove "Microsoft Visual Studio Web authoring Component" (from Programs). I had the same problem and removed this component of Visual Studio (more about it here). You'll loose the visual designer but VS won't hang anymore.

like image 5
Tiago Dias Avatar answered Nov 02 '22 21:11

Tiago Dias


It could be a problem with the "Solution User Options" file (.suo) that lives in the same folder as the solution (.sln) file.

Try checking everything in, closing visual stuido, deleting this file and restarting.

May or may not help - you might not even have a solution after all!


Alternatively, are you using any anti-virus software? Commonly AV is set-up to check files as they are accessed. I seem to remember having issues with ours a while back, and stopping it checking files within my solution helped.

If you use Sophos I can help further, otherwise try stopping your AV scanning your solution's files.

like image 2
Paul Suart Avatar answered Nov 02 '22 20:11

Paul Suart