Visual Studio调试时,没有在网站的根附加 [英] Visual Studio Debugger Not Attaching when at the Root of a website

查看:199
本文介绍了Visual Studio调试时,没有在网站的根附加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的Visual Studio 2008中的调试器不能连接到默认网站的根,当我从环境中运行的问题。我对VS 2008 SP1的.NET 3.5 Web应用程序项目的运行。我已经设置了项目使用本地IIS Web服务器以http://本地主机/的路径。我能够创建虚拟目录和应用程序编译罚款。我的问题是当IE启动调试器没有连接。我能附加到进程,然后选择w3wp.exe的,它会调试就好了。这是一个皮塔饼,我很好奇,如果有人知道为什么这不会自动附加?我用来运行下VD此相同的项目,从未发生过的问题与调试器没有连接。思考?

I am having a problem with my Visual Studio 2008 debugger not attaching to the root of the default website when I run from within the enviroment. I have an .NET 3.5 Web Application project running on VS 2008 SP1. I have set the project to "Use Local IIS Web server" with a path of "http://localhost/". I am able to create the Virtual Directory and the application compiles fine. My problem is that when IE launches the debugger is not connected. I am able to "Attach to Process" and choose "w3wp.exe" and it will debug just fine. This is a PITA and I was curious if anyone knew why this will not automatically attach? I used to run this exact same project under a VD and never had an issue with the debugger not attaching. Thoughts?

推荐答案

我是有是有关的事实,我在我的web.config包围我的标签有一个标签的问题。这显然​​会导致调试器附加然后马上错误在没有任何形式的警告或错误的。下面是我用这个号码的文章:

The problem I was having was related to the fact that I had a tag in my web.config that surrounded my tag. This evidently causes the debugger to attach and then error out immediately without any sort of warning or error. Here is the article I used to figure this out:

<一个href="http://www.west-wind.com/WebLog/posts/466163.aspx">http://www.west-wind.com/WebLog/posts/466163.aspx

这篇关于Visual Studio调试时,没有在网站的根附加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆