Visual Studio (SP1) runs fine until I try and view .aspx source files with the lines
<style type="text/css">
</stlye>
anywhere in them, upon which it freezes (i.e is totally unresponsive) and I have to use the task manager to shut it down.
I have read a lot of questions about Visual Studio 2008 crashing on viewing some source files. However, I still can't fix this problem.
I have systematically deleted and re-included all other code and it comes down to these two lines, which is very confusing. Sometimes it happens as soon as the lines are added, sometimes it doesn't freeze until I build the solution with any of the problem pages open. I can add external style sheets, and it only started recently. I had Resharper 4.5 installed and have since uninstalled it, and do not have anything else installed.
Also, it happens to other people with the same source code, and re-installing Visual Studio does not fix the problem. So I have several questions:
- Is there any way I can find out what's happening?
- I don't understand how the code (the css tag itself) could crash Visual Studio, and am thinking that this is unlikely and it must be something else within my solution, would this be a safe assumption?
- Could this have anything to do with installing Office 2010?
Thanks in advance to anyone who has ideas on how to troubleshoot this problem.
Edit: I didn't find a good answer for this question, but found that installing Visual Studio 2010 and using it instead of Visual Studio 2008 fixed the problem. I have marked the answer below as right as it gave me an idea on where to start looking. So from this I am going to conclude that this is some sort of Visual Studio bug, but would be happy to see more information if any one else encounters this problem or can shed any light on it!