I installed MVC 4 today and was about to get started when I opened up a .cshtml file and started to edit it, but every time I edit the file Visual Studio hangs and the cpu goes up to 25-30%. The only way to close VS is to force close it. This problem appears
even if I just open the .cshtml file to view it in VS, and when I try to close the document VS hangs with the same symptoms.
MVC was installed using Microsoft Web Platform Installer. I have tried to reinstall it and also remove all previous versions of MVC and install MVC 4 anew without any luck. I've read about the problem in the beta, that it should be resolved if I compile
the project before editing, but that doesn't help at all.
Fredrik Lind...
0 Points
2 Posts
VS2010 SP1 Hangs when viewing or editing .cshtml
Jan 11, 2013 12:57 PM|LINK
Hello,
I installed MVC 4 today and was about to get started when I opened up a .cshtml file and started to edit it, but every time I edit the file Visual Studio hangs and the cpu goes up to 25-30%. The only way to close VS is to force close it. This problem appears even if I just open the .cshtml file to view it in VS, and when I try to close the document VS hangs with the same symptoms.
MVC was installed using Microsoft Web Platform Installer. I have tried to reinstall it and also remove all previous versions of MVC and install MVC 4 anew without any luck. I've read about the problem in the beta, that it should be resolved if I compile the project before editing, but that doesn't help at all.
Any suggestions?
Ruchira
All-Star
43060 Points
7042 Posts
MVP
Re: VS2010 SP1 Hangs when viewing or editing .cshtml
Jan 14, 2013 03:17 PM|LINK
Hello,
According to this, it seems like a known bug. But try the workaround in the below blog post. It might work
http://blogs.msdn.com/b/webdev/archive/2012/02/27/vs2010-sp1-mvc4-beta-workaround-for-cshtml-vbhtml-editor-s-long-pause.aspx
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.Fredrik Lind...
0 Points
2 Posts
Re: VS2010 SP1 Hangs when viewing or editing .cshtml
Jan 28, 2013 06:12 AM|LINK
Hey,
Sorry for the late reply, I have not been able to answer.
As I wrote in the original post the workaround did not work, compiling the project doesn't help at all.