原来VS2008一直用的好好的,今天突然发现一打开一个aspx文件VS2008就挂起了,点什么都没反应,刚开始以为是ReSharper的原因,卸载了也不起作用。但发现有些文件有可以编辑,有些又不行。后来用google搜啊搜啊,一不小心就找到了如下解释:
After a number of recent problems lately with the ASP.NET form designer locking up in Visual Studio 2008, I finally decided to look into it. As it turns out, it’s due to problems with the Office 2010 releases messing up the Visual Web Developer components. Since I’ve been using VS2010 for the past few months I didn’t notice this until now.
The solution was simple for me. Just run the setup for the Web components again and choose the Repair action. No reboot and I was good to go!
C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\Office Setup Controller\Setup.exe
If you are running 32-bit Windows, remove the “ (x86)” part of the part.
http://www.ariankulp.com/archive/2010/03/02/web-form-designer-lockup-in-visual-studio-2008.aspx
原来是Office2010惹的祸,解决办法也很简单,运行如下文件即可:C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\Office Setup Controller\Setup.exe。运行时选择修复。
在用管理员权限运行的时候,出现了找不到Office.zh-cn\OfficeLR.cab”的提示,根据“ http://blog.csdn.net/luozhuang/article/details/2608484”说法在在安装VS2008的DVD的/WCU/WebDesignerCore文件夹中找到了“Visual Studio Web 创作组件”的安装程序,将其复制到硬盘上并解压缩,运行其中的setup.exe,出现与Office 2007相同的安装程序界面。单击“修复”,结果出现找不到office.zh-cn文件夹中文件的对话框,所以我先将其删除,然后再安装,搞定!
再次打开也不会出现无响应。