IE8下debug模式的两个小问题

摘自互联网 留作备份

 
使用Visual Studio 2003/2005调试ASP.NET程序时出现如下错误,从而无法调试:
程序“[1912] w3wp.exe: DefaultDomain”已退出,返回值为 0 (0×0)。
  对应的英文信息为: 
The program ‘[5772] w3wp.exe: demo’ has exited with code 0 (0×0).
这个问题是IE8的 Loosely-Coupled Internet Explorer (LCIE) 引起的,解决方法如下:

对于Windows 2003/Windows XP 操作系统:
1)  Open RegEdit // 打开注册表编辑器
2)  Browse to HKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main // 定位到【HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Internet Explorer/Main】
3)  Add a dword under this key called TabProcGrowth // 新建名称为 TabProcGrowth 的Reg_DWORD(整数值)
4)  Set TabProcGrowth to 0 // 设置 TabProcGrowth 的值为 0
重新启动调试,就恢复正常

如果是Vista或者更新的Win7上则需要:turn off protected mode。

解决方案来源:
VS 2005 Debugger crashing with IE 8 Beta 2

IE 8 has a feature called Loosely-Coupled Internet Explorer (LCIE) which results in IE running across multiple processes. 
http://www.microsoft.com/windows/internet-explorer/beta/readiness/developers-existing.aspx#lcie

Older versions of the Visual Studio Debugger get confused by this and cannot figure out how to attach to the correct process.  You can work around this by disabling the process growth feature of LCIE.  Here’s how:

1)  Open RegEdit
2)  Browse to HKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main
3)  Add a dword under this key called TabProcGrowth
4)  Set TabProcGrowth to 0

Since you are running on Windows Server 2003, this is all you should need to do.  If you run into the same problem on Vista or newer, you will also need to turn off protected mode.
 Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in the Internet zone
You may receive the error "Error while trying to run project: Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in the Internet zone. Click Help for more information."
This is one of the various errors that appear when you are debugging and may haunt you until you do the following fix:-
1. In the Internet Explorer, "Tools" Menu, select "Internet Options".
2. Switch to "Security" Tab.
3. Click on "Internet" (The Globe Icon. Its actually the default selected).
4. Click on "Custom Level" in the bottom.
5. Scroll down to find the "User Authentication" section.
6. Select "Automatic logon with current username and password".
7. Click "Ok" twice to exit.
This should solve the issue.
Please note that this resolution is specific only if you get the exact error message as mentioned in the beginning of this article. There are various reasons you get the "Unable to start debugging on the webserver". For a complete list of solutions, please check http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vsdebug.asp
本文来自CSDN博客,转载请标明出处: http://blog.csdn.net/Octavius/archive/2008/06/04/2511794.aspx
 
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值