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:
http://www.west-wind.com/WebLog/posts/466163.aspx