关于VS2008视图切换时和界面IDE停止响应的问题

2009年12月09日 下午 06:42

用VS2008学习做网站,发现在.aspx文件中切换试图就会导致VS2008无响应,直接死掉。后来去网上找了资料才解决:

1. http://www.cnblogs.com/never/articles/1218318.html

之前安装了Vs 2008,不知道什么时候起从源视图切换到设计视力时整个IDE都停止响应了,最后只能结束进程。网上有朋友也遇到这个问题,但都没有比较好的回答,只能发邮件问问Scott Guthrie,本人E文不好,等了几天,终于收到加信,他将问题转交给了Omar Khan,Omar Khan又将问题Mikhail Arkhipov,经过了多人之手后,回信原文如下:

Compatibility problem between VS 2008 and Office 2000 and how to fix it

A few users discovered that design view in VS 2008 and Visual Web Developer Express 2008 may get broken when Office 2000 is installed. See, for example, http://forums.asp.net/p/1194475/2061103.aspx#2061103 and http://forums.asp.net/t/1191630.aspx. Actually, the issue is wider and may affect Office 2003 installation as well. The problem manifests itself when machine has path to the Office folder with older version of fpcutl.dll specified in the system path. User might do this so they could run Office from the command line. However, adding Office path to the system path causes OS to pick the older dll when VS 2008 designer tries to loads its components. You can learn more about how OS loads dlls in the LoadLibrary API documentation.

As a workaround, try setting path to the VS 2008 designer (typically Program Files/Microsoft Web Designer Tools/VWD) before path to the Office folder or remove path to the Office folder completely from the system path. For Office 2000 this is normally Program Files/Microsoft Office/Office. Adding VWD path before Office should not affect Office applications or FrontPage 2000 since they use custom dll discovery mechanism.

大概的意思是因为老版本的office有dll和vs的某些东西冲突造成这个问题。

2. http://hi.baidu.com/weblsq/blog/item/d0ab7a87d9c13b23c65cc397.html

使用Visual studio 2008进行WebForm的开发时,切换到设计视图发生无响应(假死)现象的,其解决方法

总结网上的经验主要有三点:

  1. 将visual studio2008的安装包中的 /WCU/WebDesignerCore/WebDesignerCore.EXE,提取出来安装。
  2. 将C:/Program Files/Common Files/Microsoft Shared/OFFICE12/Office Setup Controller/下的“SETUP.EXE”,更名或者删除。
  3. 如果安装了RTX[企信通]:将注册表中。[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/TypeLib/{F5078F18-C551-11D3-89B9-0000F81FE221}/5.0/0/win32]下的默认值修改为:"C://Program Files//Common Files//Microsoft Shared//OFFICE11//msxml5.dll"

主要就这三点,需要一步步的试,可以了就不用再做,一般到第二步就行了

3. http://ioriwellings.spaces.live.com/blog/cns!D4DE46FA8730D2CA!1176.entry

这些天发现2008无论打开什么项目之后,界面都不响应
今天仔细研究发现它起动了一个内部进程,
运行 C:/Program Files/Common Files/Microsoft Shared/OFFICE12/Office Setup Controller/Setup.exe文件

应该是该文件引起的ui停止响应,直接运行该文件果然,它是向导式操作,一步一步之后,2008终于可以正常开发了.

 

从这些都指示出跟office有关,我想起以前我的office问题。开始是一个英文版的2007,不过用着用的时候就要弹输入CDKEY,很不爽,网上找了个方法修改之后貌似可以了,在一次系统的清理中,他居然罢工,而且可恶的是,卸载不了,然后去找了一个中文的破解版,哈哈。接着就出现了这个问题。。。

我的修改是卸载掉以前的版本,,无奈有只好安装了一次再卸载。。卸载之后就可以正常使用vs2008了。。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值