在Visual Studio 2010(F5)上无法启动调试器但是,“附加到进程”确实工作(缓慢)。怎么修? [英] Cannot start debugger on Visual Studio 2010 (F5) However, ' attach to process' does work (slow). How to fix?

查看:236
本文介绍了在Visual Studio 2010(F5)上无法启动调试器但是,“附加到进程”确实工作(缓慢)。怎么修?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

环境




  • 清洁(新)安装Windows 7 64bit。

  • 清洁(新)安装Visual Studio 2010 Professional(10.0.30319.1)。

  • Windows Update是最新的。



    • 问题:

      我无法在Visual Studio 2010上启动调试器(点击F5):
      ' 无法在Web服务器上开始调试。无法连接到Web服务器。验证Web服务器是否正在运行,并且HTTP请求不会被防火墙阻止。'


      但是,'附加到进程 (我通常做的)做的工作,但启动起来很慢(Visual Studio'认为'很多时间在调试实际启用之前)。


      在同一个硬件,运行VS 2008在旧的Windows XP(32位),这个问题从来没有发生过。



      尝试调试在ASP.NET开发服务器下运行的站点也失败: br />'无法连接到ASP.NET开发服务器。


      有很多关于这些错误的网页(很多非常过时,



      注意:




      • 无论我是否以管理员身份运行Visual Studio。问题是
        一样。

      • 即使运行全新的空白IIS网站(被创建为localhost / something或sample.local),问题也会发生。

      • 如果我创建一个文件系统网站(尝试ASP.NET开发服务器),当我点击F5,服务器启动,但经过漫长的等待Visual Studio说无法连接到ASP.NET开发服务器。'

      • 'hosts'文件有一个明确的127.0.0.1条目'localhost'和'sample.local'

      • 运行.NET 2.0或4.0也是一样的问题。

      • 配置应用程序池或启用32位应用程序为true还是false。

      • 配置应用程序池是经典或集成模式是一样的。

      • 在绝望的尝试中,我添加了所有的IIS 6.0旧版'功能'的东西(不需要!),根本没有帮助。



      现在我还可以尝试什么。

      谢谢。

      解决方案

      OMG !,我很愚蠢。最无知的事情是真的错了。防火墙中有一个错误的规则。因此,即使处于交互模式(因为它始终被设置),连接被拒绝。


      The environment:

      • Clean (new) install of Windows 7 64bit.
      • Clean (new) install of Visual Studio 2010 Professional (10.0.30319.1).
      • Windows Update is up to date.

      The problem:
      I cannot start the debugger on Visual Studio 2010 (hit F5):
      'Unable to start debugging on the web server. Unable to connect to the web server. Verify that the web server is running and that incomming HTTP requests are not blocked by a firewall.'

      However, 'attach to process' (what I usually do) does work, but it is painfully slow to start (Visual Studio 'thinks' a lot of time before the debugging is actually enabled).

      On the same hardware, running VS 2008 on good old Windows XP (32bits), this problem never happened.

      Trying to debug a site running under the ASP.NET Development Server also fails:
      'Unable to connect to ASP.NET Development Server.'.

      There are plenty of web pages about these errors (many very outdated and does not apply to my environment), none of them worked for me.

      Notes:

      • No matter if I run Visual Studio as Administrator or not. The problem is the same.
      • The problem happens even when running a brand new blank IIS web site, either created as 'localhost/something' or 'sample.local'.
      • If I create a 'File System' web site (to try ASP.NET Development Server), when I hit F5, the server starts, but after a long wait Visual Studio says 'Unable to connect to ASP.NET Development Server.'
      • The 'hosts' file has an explicit 127.0.0.1 entry for 'localhost' and for 'sample.local'
      • It's the same problem either running .NET 2.0 or 4.0.
      • It's the same either configuring the application pool with or without 'Enable 32-Bit Applications' true or false.
      • It's the same either configuring the application pool is classic or integrated mode.
      • In a desperate attempt, I've added all the IIS 6.0 legacy 'features' stuff (not needed!) and doesn't helped at all.

      I don't now what else I can try.
      Thanks.

      解决方案

      OMG!, I'm so stupid. The most oblivious thing was truly wrong. There was a wrong rule in the firewall. Therefore, even being in 'interactive mode' (as it is was always set), the connection was denied.

      这篇关于在Visual Studio 2010(F5)上无法启动调试器但是,“附加到进程”确实工作(缓慢)。怎么修?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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