views:

2401

answers:

8

Hi all! 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.

+2  A: 

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.

Paul Suart
Cool! Always wondered what suo stood for.
Damian Powell
A: 

Wild shot, but try turning off Html Validation in Options. There was an issue with that at some point.

Rob Kent
A: 

Turning off Html Validation didn't work. What I've noticed that before opening .aspx/.ascx file in solution memory usage (of VS) is for example 50k and when I double click i.e. Default.aspx to view Source then memory usage goes up to for example 150k and VS is not responding.

Everything did work last week. :/

rafek
Did you see my alternative solution?
Paul Suart
+1  A: 

You can try opening using other Visual Studio editor (right-click on the file, Choose Open With...)

Juozas Kontvainis
Oh, yeah :) It does work! My default is Web Form Editor - I've chosen HTML Editor and it works! :)
rafek
Similar situation - Web Form Editor was freezing when working with an MVC page
Sergey Aldoukhov
A: 

If you don't use the ClearCase plugin do you still get the problem?

i.e. Try saving copying your solution to your local machine, remove all the source control bindings and see if you get the same problem.

Depending on how your environment is set up, you could be looking at a lag when VB is communicating with ClearCase.

And if all else fails, there are a few good diagnostic tools from the old SysInternal suite to help you figure out if it is a file access, registry or network problem.

SysInternals Site
FileMon - File reads / writes
RegMon - Registry reads / writes
TCPView - Network traffic

Mxyzptlk
+3  A: 

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.

Tiago Dias
+12  A: 

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.

Viktor Einarsson
Thanks, this fix works !!!
Vin
Works for me as well (I noticed the problem straight after installing Office 2010), thanks!
andypaxo
+1  A: 

Repairing "Microsoft Visual Studio Web authoring Component" did the trick for me. Thank you Viktor,

Reza Jahanbakhshi