Visual Studio“无法在web服务器上启动调试”。web服务器没有及时响应。

时间:2021-09-16 05:18:36

I get the following error pretty regularly when compiling in Visual Studio and running my web application:

在Visual Studio中编译并运行我的web应用程序时,我经常会遇到以下错误:

"Unable to start debugging on the web server. The web server did not respond in a timely manner. This may be because another debugger is already attached to the web server."

无法在web服务器上启动调试。web服务器没有及时响应。这可能是因为web服务器已经附加了另一个调试器。

Normally this is after having debug the application once already. From the command line I run "iisreset /restart" and it fixes the problem.

通常这是在已经调试了应用程序一次之后。我从命令行运行“iisreset /restart”,它修复了问题。

How do I prevent this from happening in the first place?

首先,我要如何防止这种情况的发生?

29 个解决方案

#1


18  

I find that this happens if I'm debugging with Firefox as my browser. When I exit Firefox the VS2005/8 debug session doesn't terminate. I have not found a solution for this (yet).

如果我使用Firefox作为我的浏览器进行调试,就会出现这种情况。当我退出Firefox时,VS2005/8调试会话不会终止。我还没有找到解决这个问题的方法。

If this is what's happening with you then a quicker solution than running iisreset is to hit Shift-F5 when in Visual Studio and this will terminate the current debug session. You can then hit F5 and this will start a new debug session.

如果这就是发生在您身上的事情,那么比运行iisreset更快的解决方案是在Visual Studio中按Shift-F5,这将终止当前的调试会话。然后单击F5,这将启动一个新的调试会话。

#2


18  

The solution that worked for me:

对我起作用的解决方案是:

  1. Open Command Prompt (Run as Administrator)

    打开命令提示符(作为管理员运行)

  2. Write iisreset /restart

    写iis重启/重启

  3. Now, go back to your VS and debug. It will debug your solution.

    现在,回到VS和debug。它将调试您的解决方案。

It worked for Visual Studio 2013 and 2015 too in my case.

在我的案例中,它也适用于2013和2015年的Visual Studio。

#3


4  

After trying all of the proposed solutions here and in other places (at least 10 different approaches), the only option that worked for me was:

在这里和其他地方尝试了所有建议的解决方案(至少有10种不同的方法)之后,对我有效的唯一选择是:

  • delete website and application pool on IIS
  • 删除IIS上的网站和应用程序池
  • re-create website and application pool on IIS (in my case, everything exactly the same config as before)
  • 在IIS上重新创建网站和应用程序池(在我的例子中,所有配置都与以前完全相同)

PS: I am using VS 2013 and IIS 7.5 (Win7).

我正在使用VS 2013和IIS 7.5 (Win7)。

I hope this saves someone else a few hours.

我希望这能节省别人几个小时的时间。

#4


3  

We use another way of debugging, we never use F5 anymore.

我们使用另一种调试方法,不再使用F5。

We use a macro kind of like: http://blogs.conchango.com/howardvanrooijen/archive/2007/06/24/Attach-to-Web-Server-Macro-for-Visual-Studio.aspx (Which we bound to F6).

我们使用类似的宏:http://blogs.conchango.com/howardvanrooijen/archive/2007/06/24/ attachto web - server - macro for visual - studio.aspx(我们绑定到F6)。

This way you simply attach the debugger to IIS. It's (depending on project size) much quicker to make you changes, compile a single project that you changed and attach the debugger again.

这样,只需将调试器附加到IIS。它(取决于项目的大小)更快地使您进行更改,编译您更改的单个项目,并再次附加调试器。

#5


3  

solution:go to task manager and end process aspnet_wp.exe before running application

解决方案:转到任务管理器并结束进程aspnet_wp。exe在运行应用程序之前

#6


3  

I have had this problem a couple times. One time it was resolved by taking Guy's advice:

这个问题我已经有好几次了。有一次,他采纳了盖伊的建议,解决了这个问题:

If this is what's happening with you then a quicker solution than running iisreset is to hit Shift-F5 when in Visual Studio and this will terminate the current debug session. You can then hit F5 and this will start a new debug session.

如果这就是发生在您身上的事情,那么比运行iisreset更快的解决方案是在Visual Studio中按Shift-F5,这将终止当前的调试会话。然后单击F5,这将启动一个新的调试会话。

On a separate occasion I had to: terminate all my iis worker processes in the windows task manager (w3wp.exe*). You should be able to hit f5 in visual studio to debug.

在另一个场合,我不得不:在windows任务管理器(w3wp.exe*)中终止所有iis worker进程。您应该能够在visual studio中点击f5进行调试。

#7


2  

It sounds like you are probably hitting F5 in Visual Studio when you receive this error?

当你收到这个错误时,你可能会在Visual Studio中点击F5 ?

There are a few things you can try. The easiest is to hit the Stop button before hitting F5. Optionally, when you are finished debugging and starting to make changes you can go to the Debug menu and choose either Stop Debugging or Terminate All.

有一些事情你可以尝试。最简单的方法是在按F5之前按下停止按钮。可选地,当您完成调试并开始进行更改时,您可以转到Debug菜单中,选择停止调试或全部终止。

#8


2  

For me I had two visual studio open. The debugger already was attached to another visual studio :). I stopped it on the first one and was able to attach on the second visual studio.

对我来说,我有两个视觉工作室。调试器已经附加到另一个visual studio:)。我在第一个的时候把它停了下来,然后就可以在第二个visual studio上安装了。

#9


1  

If you have a lot of break points this will slow the debugging process down, so remove unneeded break points and close the Autos window this will solve your problem

如果您有很多断点,这将减慢调试过程,因此删除不必要的断点并关闭Autos窗口,这将解决您的问题

#10


1  

I saw this message first time in my life and I was very confused about what is going on as it is not pretty obvious what to do.

我有生以来第一次看到这条信息,我对正在发生的事情感到非常困惑,因为不知道该怎么做。

I ran iisreset and it took just 1 sec to finish the execution, and boom, I was back into the game.

我进行了iisreset,只花了1秒就完成了执行,然后,我又回到了游戏中。

P.S. I am using chrome

附注:我正在使用chrome浏览器

#11


1  

Hit Shift+F5 when in Visual Studio and this will terminate the current debug session. You can then hit F5 and this will start a new debug session.

在Visual Studio中点击Shift+F5,这将终止当前的调试会话。然后单击F5,这将启动一个新的调试会话。

or

close your application, reset iis then open your application and run it

关闭应用程序,重置iis,然后打开应用程序并运行它

#12


1  

When debugging 2 web application (1 MVC and 2 is MVC WebAPI) that are both hosted in the local IIS. Make sure that each application is using a different application pool. I encountered the same issue and as soon as I change the app pool of the other one, it worked!

调试两个web应用程序(一个MVC和两个MVC是MVC WebAPI)时,它们都驻留在本地IIS中。确保每个应用程序都使用不同的应用程序池。我遇到了同样的问题,一旦我改变了另一个的应用程序池,它就成功了!

#13


0  

It sounds like something is eating up your web server's resources. Perhaps you have some resources (file handlers, wcf proxies) that are being opened and not closed? I've had this happen to me specifically when I was not closing WCF client proxy connections.

这听起来像是在吞噬你的网络服务器的资源。也许您有一些资源(文件处理程序、wcf代理)正在打开而没有关闭?我在没有关闭WCF客户端代理连接时就遇到过这种情况。

The problem is not necessarily that you have a debugger attached, but only that the web server is not responding in a timely manner. Note that the message says "This may be because another debugger is attached".

问题不在于是否附带了调试器,而在于web服务器没有及时响应。注意,消息说“这可能是因为附加了另一个调试器”。

#14


0  

The issue is normally there when an another instance of iexplore is still running. I used to have the issue when my IE crashes but I can still see it in the Task Manager. Once you "End Process" everything is back to normal :)

当iexplore的另一个实例仍在运行时,问题就在这里了。我以前在IE崩溃时遇到过这个问题,但是我仍然可以在任务管理器中看到。一旦你“结束过程”,一切都会恢复正常。

#15


0  

This answer will only apply if you are running your solution through IIS. You will know if this applies to you IF you open up your website/project by doing the following: From within visual studio-->Open Website--> Local IIS -->Select your project

这个答案只适用于在IIS中运行解决方案的情况。如果您通过以下操作打开您的网站/项目,您将知道这是否适用于您:从visual studio—> open website—> Local IIS—>选择您的项目

This error Kicked my butt for 4 hours but finally i found an answer. I first attempted the iisreset /restart. This seemed to slightly help but still received the same error.

这个错误使我苦恼了4个小时,但我终于找到了答案。我首先尝试了iisreset /restart。这似乎有点帮助,但还是收到了同样的错误。

What worked for me was going (xp machine) to add/remove programs --> Add/Remove Windows Components--> Click on IIS--> Click on "Details". Be sure to have Front Page Extensions installed if you are debugging through IIS.

对我起作用的是(xp machine)添加/删除程序——>添加/删除Windows组件——>点击IIS——>点击“详情”。如果您正在通过IIS调试,请确保安装了首页扩展。

#16


0  

If all the answers does not work for you, just end process all iis related components in task manager. This is what worked for me.

如果所有答案对您不起作用,那么只需在task manager中处理所有iis相关的组件。这就是我的工作。

#17


0  

I ran into this issue when trying to debug (2) separate solutions in VS.NET and both were using the IIS Web Server to launch the app. The 1st application will start, but any subsequent applications started that also run via IIS will then display that error. It seems that it can only debug a single application via VS.NET hosted in IIS at a time.

我在试着调试VS.NET中的(2)单独的解决方案时遇到了这个问题,他们都在使用IIS Web服务器来启动应用程序。似乎它一次只能通过IIS托管的VS.NET调试一个应用程序。

The solution: run project 1 from VS.NET (place any needed breakpoints) and start the second application directly from IIS (not VS.NET). Your breakpoints in App 1 (running in VS.NET) will be hit when accessing App 2 (ran from IIS directly).

解决方案:从VS.NET运行project 1(放置任何需要的断点),并直接从IIS(而不是VS.NET)启动第二个应用程序。当访问App 2(直接从IIS运行)时,你在App 1中的断点(在VS.NET中运行)将会被击中。

#18


0  

This happens to me quite a bit in VS 2010 express - Usually because the debugger stopped responding. Right click windows taskbar, select 'Start Task Manager'. More than likely the ASP.NET debugger will be showing a 'not responding' status. Select it and simply terminate the process.

在VS 2010 express中,我经常遇到这种情况——通常是因为调试器停止响应。右键单击windows任务栏,选择“启动任务管理器”。很有可能是ASP。NET调试器将显示“无响应”状态。选择它并简单地终止进程。

Done!

完成了!

#19


0  

With me it happened when IE was upgraded to newer version, went to Installed Updates, removed new version of IE, after computer restarted it went back to old version and problem with debugging was solved

随着我的出现,IE升级到更新版本,安装更新,删除新版本的IE,电脑重启后又回到旧版本,调试问题解决

#20


0  

Very basic - but check that if you try to run the web site from IIS by clicking on "Browse", the site actually runs.

非常基本——但是如果您试图通过单击“浏览”从IIS运行web站点,那么请检查一下,站点实际上是在运行的。

#21


0  

Had the same problem, even after a reboot. Basically did this:

也有同样的问题,即使在重新启动之后。基本上是这样的:

  1. Restart IIS
  2. 重启IIS
  3. Clean Solution
  4. 清洁解决方案
  5. Rebuild Solution
  6. 重建方案

Then it started working again.

然后它又开始工作了。

#22


0  

This can also be caused if your website uses a database connection but the database server is unavailable.

如果您的网站使用数据库连接,而数据库服务器不可用,则可能导致此问题。

I spent some time trying to resolve this issue in the usual ways, but even after restarting my workstation, the issue remained. Eventually I found that the SQL Server (MSSQLSERVER) service was not running.

我花了一些时间尝试用通常的方式来解决这个问题,但是即使重新启动我的工作站,这个问题仍然存在。最后我发现SQL Server (MSSQLSERVER)服务没有运行。

It should have been running, as it's set to Automatic, but it was stopped, even after the reboot. All the MSSQLSERVER events in the event log appeared normal, so it remains unknown why it wasn't running, but I have now set it to Automatic (delayed start) in the hope that this will reduce resource contention during startup.

它应该一直运行,因为它设置为自动的,但是它在重启之后就停止了。事件日志中的所有MSSQLSERVER事件都是正常的,所以它不运行的原因仍然未知,但是我现在将它设置为Automatic(延迟启动),希望这将在启动时减少资源争用。

Once I started MSSQLSERVER , the message "Unable to start debugging on the web server. The web server did not respond in a timely manner" no longer appeared and normal service was resumed.

启动MSSQLSERVER后,消息“无法在web服务器上启动调试”。web服务器没有及时响应,“不再出现,恢复正常服务”。

#23


0  

I had to recreate the site/application/virtual directory to make it work after I installed vs2015 update3. Hope this helps someone. ;)

在安装了vs2015 update3之后,我必须重新创建站点/应用程序/虚拟目录才能使其工作。希望这可以帮助别人。,)

#24


0  

I know this is an old question, but I met the same situation recently and try every solution in this post, and no luck. Finally, I found the solution that works for me:

我知道这是一个老问题,但我最近遇到了同样的情况,在这篇文章中尝试了所有的解决方法,没有运气。最后,我找到了适合我的解决方案:

  1. Close Visual Studio
  2. 关闭Visual Studio
  3. Find Turn Windows features on or off in Control Panel
  4. 在控制面板中找到开关窗口的功能
  5. Uncheck Internet Information Services in the popup dialog
  6. 在弹出对话框中取消网络信息服务。
  7. Restart your computer
  8. 重新启动你的电脑
  9. Check Internet Information Services in the same dialog, and make sure Internet Information Service -> World Wide Web Services -> Application Development Features -> ASP.NET also been checked
  10. 在同一对话框中查看互联网信息服务,确保互联网信息服务——>万维网服务——>应用开发特性——> ASP。网也被检查
  11. Open Visual Studio, and now your application should be able to run in debug mode
  12. 打开Visual Studio,现在应用程序应该可以在调试模式下运行

#25


0  

Open

开放

  • Options and Settings Under the debug
  • 调试下的选项和设置
  • Symbols and unchecked Microsoft Symbol Servers
  • 符号和未检查的微软符号服务器。
  • build solution
  • 构建解决方案
  • iisreset
  • iis重启
  • F5 solution (Be sure Microsoft Symbol Servers unchecked again)
  • F5解决方案(请确保再次检查Microsoft符号服务器)

#26


0  

This worked for me by @mtkachenko Visual Studio 2012: Unable to attach the process. A debugger is already attached "I have installed Debug Diagnostic Tool v2.0 and as a result I have Debug Diagnostic Service which is started automatically and attached to one of w3wp processes. After turning off and disabling this service all works fine. So if you get such error check processes in task manager which can capture your w3wp process"

@mtkachenko Visual Studio 2012: can ' t attach process。“我已经安装了调试诊断工具v2.0,因此我有了调试诊断服务,它将自动启动并附加到w3wp进程之一。”关闭和禁用此服务后,一切正常。如果你在任务管理器中得到这样的错误检查过程可以捕获w3wp过程

#27


-1  

I just solved this problem on my machine. My problem is that I upgraded IE 9 To IE 10 and I got this error. Solution : Remove IE 10 and downgrade to IE 9. Go to "Programs and Features" --> "View recent updates" --> find IE 10---> Uninstall it-->reboot--->ie 9 is back--->debug--->works OK.

我刚刚在我的机器上解决了这个问题。我的问题是我把IE 9升级到ie10,我得到了这个错误。解决方案:删除IE 10并降级为IE 9。转到“程序和功能”——>“查看最近更新”——>找到IE 10——>卸载——>重启——> IE 9回来了——>调试——>运行正常。

#28


-1  

Try performing either of the following steps to resolve your issue:

尝试执行以下任何一个步骤来解决你的问题:

  • Restart your IIS Server
  • 重新启动IIS服务器
  • Clean the Solution of your project then build again
  • 清理项目的解决方案,然后再次构建

If above steps do not help, you can finally try restarting your machine

如果上面的步骤没有帮助,您可以尝试重新启动您的机器。

#29


-1  

in your cmd type iisreset and press enter after that your iis is reset and your application is working perfectly

在cmd类型的iisreset中,在iis重置之后,你的应用程序运行良好,然后按enter

#1


18  

I find that this happens if I'm debugging with Firefox as my browser. When I exit Firefox the VS2005/8 debug session doesn't terminate. I have not found a solution for this (yet).

如果我使用Firefox作为我的浏览器进行调试,就会出现这种情况。当我退出Firefox时,VS2005/8调试会话不会终止。我还没有找到解决这个问题的方法。

If this is what's happening with you then a quicker solution than running iisreset is to hit Shift-F5 when in Visual Studio and this will terminate the current debug session. You can then hit F5 and this will start a new debug session.

如果这就是发生在您身上的事情,那么比运行iisreset更快的解决方案是在Visual Studio中按Shift-F5,这将终止当前的调试会话。然后单击F5,这将启动一个新的调试会话。

#2


18  

The solution that worked for me:

对我起作用的解决方案是:

  1. Open Command Prompt (Run as Administrator)

    打开命令提示符(作为管理员运行)

  2. Write iisreset /restart

    写iis重启/重启

  3. Now, go back to your VS and debug. It will debug your solution.

    现在,回到VS和debug。它将调试您的解决方案。

It worked for Visual Studio 2013 and 2015 too in my case.

在我的案例中,它也适用于2013和2015年的Visual Studio。

#3


4  

After trying all of the proposed solutions here and in other places (at least 10 different approaches), the only option that worked for me was:

在这里和其他地方尝试了所有建议的解决方案(至少有10种不同的方法)之后,对我有效的唯一选择是:

  • delete website and application pool on IIS
  • 删除IIS上的网站和应用程序池
  • re-create website and application pool on IIS (in my case, everything exactly the same config as before)
  • 在IIS上重新创建网站和应用程序池(在我的例子中,所有配置都与以前完全相同)

PS: I am using VS 2013 and IIS 7.5 (Win7).

我正在使用VS 2013和IIS 7.5 (Win7)。

I hope this saves someone else a few hours.

我希望这能节省别人几个小时的时间。

#4


3  

We use another way of debugging, we never use F5 anymore.

我们使用另一种调试方法,不再使用F5。

We use a macro kind of like: http://blogs.conchango.com/howardvanrooijen/archive/2007/06/24/Attach-to-Web-Server-Macro-for-Visual-Studio.aspx (Which we bound to F6).

我们使用类似的宏:http://blogs.conchango.com/howardvanrooijen/archive/2007/06/24/ attachto web - server - macro for visual - studio.aspx(我们绑定到F6)。

This way you simply attach the debugger to IIS. It's (depending on project size) much quicker to make you changes, compile a single project that you changed and attach the debugger again.

这样,只需将调试器附加到IIS。它(取决于项目的大小)更快地使您进行更改,编译您更改的单个项目,并再次附加调试器。

#5


3  

solution:go to task manager and end process aspnet_wp.exe before running application

解决方案:转到任务管理器并结束进程aspnet_wp。exe在运行应用程序之前

#6


3  

I have had this problem a couple times. One time it was resolved by taking Guy's advice:

这个问题我已经有好几次了。有一次,他采纳了盖伊的建议,解决了这个问题:

If this is what's happening with you then a quicker solution than running iisreset is to hit Shift-F5 when in Visual Studio and this will terminate the current debug session. You can then hit F5 and this will start a new debug session.

如果这就是发生在您身上的事情,那么比运行iisreset更快的解决方案是在Visual Studio中按Shift-F5,这将终止当前的调试会话。然后单击F5,这将启动一个新的调试会话。

On a separate occasion I had to: terminate all my iis worker processes in the windows task manager (w3wp.exe*). You should be able to hit f5 in visual studio to debug.

在另一个场合,我不得不:在windows任务管理器(w3wp.exe*)中终止所有iis worker进程。您应该能够在visual studio中点击f5进行调试。

#7


2  

It sounds like you are probably hitting F5 in Visual Studio when you receive this error?

当你收到这个错误时,你可能会在Visual Studio中点击F5 ?

There are a few things you can try. The easiest is to hit the Stop button before hitting F5. Optionally, when you are finished debugging and starting to make changes you can go to the Debug menu and choose either Stop Debugging or Terminate All.

有一些事情你可以尝试。最简单的方法是在按F5之前按下停止按钮。可选地,当您完成调试并开始进行更改时,您可以转到Debug菜单中,选择停止调试或全部终止。

#8


2  

For me I had two visual studio open. The debugger already was attached to another visual studio :). I stopped it on the first one and was able to attach on the second visual studio.

对我来说,我有两个视觉工作室。调试器已经附加到另一个visual studio:)。我在第一个的时候把它停了下来,然后就可以在第二个visual studio上安装了。

#9


1  

If you have a lot of break points this will slow the debugging process down, so remove unneeded break points and close the Autos window this will solve your problem

如果您有很多断点,这将减慢调试过程,因此删除不必要的断点并关闭Autos窗口,这将解决您的问题

#10


1  

I saw this message first time in my life and I was very confused about what is going on as it is not pretty obvious what to do.

我有生以来第一次看到这条信息,我对正在发生的事情感到非常困惑,因为不知道该怎么做。

I ran iisreset and it took just 1 sec to finish the execution, and boom, I was back into the game.

我进行了iisreset,只花了1秒就完成了执行,然后,我又回到了游戏中。

P.S. I am using chrome

附注:我正在使用chrome浏览器

#11


1  

Hit Shift+F5 when in Visual Studio and this will terminate the current debug session. You can then hit F5 and this will start a new debug session.

在Visual Studio中点击Shift+F5,这将终止当前的调试会话。然后单击F5,这将启动一个新的调试会话。

or

close your application, reset iis then open your application and run it

关闭应用程序,重置iis,然后打开应用程序并运行它

#12


1  

When debugging 2 web application (1 MVC and 2 is MVC WebAPI) that are both hosted in the local IIS. Make sure that each application is using a different application pool. I encountered the same issue and as soon as I change the app pool of the other one, it worked!

调试两个web应用程序(一个MVC和两个MVC是MVC WebAPI)时,它们都驻留在本地IIS中。确保每个应用程序都使用不同的应用程序池。我遇到了同样的问题,一旦我改变了另一个的应用程序池,它就成功了!

#13


0  

It sounds like something is eating up your web server's resources. Perhaps you have some resources (file handlers, wcf proxies) that are being opened and not closed? I've had this happen to me specifically when I was not closing WCF client proxy connections.

这听起来像是在吞噬你的网络服务器的资源。也许您有一些资源(文件处理程序、wcf代理)正在打开而没有关闭?我在没有关闭WCF客户端代理连接时就遇到过这种情况。

The problem is not necessarily that you have a debugger attached, but only that the web server is not responding in a timely manner. Note that the message says "This may be because another debugger is attached".

问题不在于是否附带了调试器,而在于web服务器没有及时响应。注意,消息说“这可能是因为附加了另一个调试器”。

#14


0  

The issue is normally there when an another instance of iexplore is still running. I used to have the issue when my IE crashes but I can still see it in the Task Manager. Once you "End Process" everything is back to normal :)

当iexplore的另一个实例仍在运行时,问题就在这里了。我以前在IE崩溃时遇到过这个问题,但是我仍然可以在任务管理器中看到。一旦你“结束过程”,一切都会恢复正常。

#15


0  

This answer will only apply if you are running your solution through IIS. You will know if this applies to you IF you open up your website/project by doing the following: From within visual studio-->Open Website--> Local IIS -->Select your project

这个答案只适用于在IIS中运行解决方案的情况。如果您通过以下操作打开您的网站/项目,您将知道这是否适用于您:从visual studio—> open website—> Local IIS—>选择您的项目

This error Kicked my butt for 4 hours but finally i found an answer. I first attempted the iisreset /restart. This seemed to slightly help but still received the same error.

这个错误使我苦恼了4个小时,但我终于找到了答案。我首先尝试了iisreset /restart。这似乎有点帮助,但还是收到了同样的错误。

What worked for me was going (xp machine) to add/remove programs --> Add/Remove Windows Components--> Click on IIS--> Click on "Details". Be sure to have Front Page Extensions installed if you are debugging through IIS.

对我起作用的是(xp machine)添加/删除程序——>添加/删除Windows组件——>点击IIS——>点击“详情”。如果您正在通过IIS调试,请确保安装了首页扩展。

#16


0  

If all the answers does not work for you, just end process all iis related components in task manager. This is what worked for me.

如果所有答案对您不起作用,那么只需在task manager中处理所有iis相关的组件。这就是我的工作。

#17


0  

I ran into this issue when trying to debug (2) separate solutions in VS.NET and both were using the IIS Web Server to launch the app. The 1st application will start, but any subsequent applications started that also run via IIS will then display that error. It seems that it can only debug a single application via VS.NET hosted in IIS at a time.

我在试着调试VS.NET中的(2)单独的解决方案时遇到了这个问题,他们都在使用IIS Web服务器来启动应用程序。似乎它一次只能通过IIS托管的VS.NET调试一个应用程序。

The solution: run project 1 from VS.NET (place any needed breakpoints) and start the second application directly from IIS (not VS.NET). Your breakpoints in App 1 (running in VS.NET) will be hit when accessing App 2 (ran from IIS directly).

解决方案:从VS.NET运行project 1(放置任何需要的断点),并直接从IIS(而不是VS.NET)启动第二个应用程序。当访问App 2(直接从IIS运行)时,你在App 1中的断点(在VS.NET中运行)将会被击中。

#18


0  

This happens to me quite a bit in VS 2010 express - Usually because the debugger stopped responding. Right click windows taskbar, select 'Start Task Manager'. More than likely the ASP.NET debugger will be showing a 'not responding' status. Select it and simply terminate the process.

在VS 2010 express中,我经常遇到这种情况——通常是因为调试器停止响应。右键单击windows任务栏,选择“启动任务管理器”。很有可能是ASP。NET调试器将显示“无响应”状态。选择它并简单地终止进程。

Done!

完成了!

#19


0  

With me it happened when IE was upgraded to newer version, went to Installed Updates, removed new version of IE, after computer restarted it went back to old version and problem with debugging was solved

随着我的出现,IE升级到更新版本,安装更新,删除新版本的IE,电脑重启后又回到旧版本,调试问题解决

#20


0  

Very basic - but check that if you try to run the web site from IIS by clicking on "Browse", the site actually runs.

非常基本——但是如果您试图通过单击“浏览”从IIS运行web站点,那么请检查一下,站点实际上是在运行的。

#21


0  

Had the same problem, even after a reboot. Basically did this:

也有同样的问题,即使在重新启动之后。基本上是这样的:

  1. Restart IIS
  2. 重启IIS
  3. Clean Solution
  4. 清洁解决方案
  5. Rebuild Solution
  6. 重建方案

Then it started working again.

然后它又开始工作了。

#22


0  

This can also be caused if your website uses a database connection but the database server is unavailable.

如果您的网站使用数据库连接,而数据库服务器不可用,则可能导致此问题。

I spent some time trying to resolve this issue in the usual ways, but even after restarting my workstation, the issue remained. Eventually I found that the SQL Server (MSSQLSERVER) service was not running.

我花了一些时间尝试用通常的方式来解决这个问题,但是即使重新启动我的工作站,这个问题仍然存在。最后我发现SQL Server (MSSQLSERVER)服务没有运行。

It should have been running, as it's set to Automatic, but it was stopped, even after the reboot. All the MSSQLSERVER events in the event log appeared normal, so it remains unknown why it wasn't running, but I have now set it to Automatic (delayed start) in the hope that this will reduce resource contention during startup.

它应该一直运行,因为它设置为自动的,但是它在重启之后就停止了。事件日志中的所有MSSQLSERVER事件都是正常的,所以它不运行的原因仍然未知,但是我现在将它设置为Automatic(延迟启动),希望这将在启动时减少资源争用。

Once I started MSSQLSERVER , the message "Unable to start debugging on the web server. The web server did not respond in a timely manner" no longer appeared and normal service was resumed.

启动MSSQLSERVER后,消息“无法在web服务器上启动调试”。web服务器没有及时响应,“不再出现,恢复正常服务”。

#23


0  

I had to recreate the site/application/virtual directory to make it work after I installed vs2015 update3. Hope this helps someone. ;)

在安装了vs2015 update3之后,我必须重新创建站点/应用程序/虚拟目录才能使其工作。希望这可以帮助别人。,)

#24


0  

I know this is an old question, but I met the same situation recently and try every solution in this post, and no luck. Finally, I found the solution that works for me:

我知道这是一个老问题,但我最近遇到了同样的情况,在这篇文章中尝试了所有的解决方法,没有运气。最后,我找到了适合我的解决方案:

  1. Close Visual Studio
  2. 关闭Visual Studio
  3. Find Turn Windows features on or off in Control Panel
  4. 在控制面板中找到开关窗口的功能
  5. Uncheck Internet Information Services in the popup dialog
  6. 在弹出对话框中取消网络信息服务。
  7. Restart your computer
  8. 重新启动你的电脑
  9. Check Internet Information Services in the same dialog, and make sure Internet Information Service -> World Wide Web Services -> Application Development Features -> ASP.NET also been checked
  10. 在同一对话框中查看互联网信息服务,确保互联网信息服务——>万维网服务——>应用开发特性——> ASP。网也被检查
  11. Open Visual Studio, and now your application should be able to run in debug mode
  12. 打开Visual Studio,现在应用程序应该可以在调试模式下运行

#25


0  

Open

开放

  • Options and Settings Under the debug
  • 调试下的选项和设置
  • Symbols and unchecked Microsoft Symbol Servers
  • 符号和未检查的微软符号服务器。
  • build solution
  • 构建解决方案
  • iisreset
  • iis重启
  • F5 solution (Be sure Microsoft Symbol Servers unchecked again)
  • F5解决方案(请确保再次检查Microsoft符号服务器)

#26


0  

This worked for me by @mtkachenko Visual Studio 2012: Unable to attach the process. A debugger is already attached "I have installed Debug Diagnostic Tool v2.0 and as a result I have Debug Diagnostic Service which is started automatically and attached to one of w3wp processes. After turning off and disabling this service all works fine. So if you get such error check processes in task manager which can capture your w3wp process"

@mtkachenko Visual Studio 2012: can ' t attach process。“我已经安装了调试诊断工具v2.0,因此我有了调试诊断服务,它将自动启动并附加到w3wp进程之一。”关闭和禁用此服务后,一切正常。如果你在任务管理器中得到这样的错误检查过程可以捕获w3wp过程

#27


-1  

I just solved this problem on my machine. My problem is that I upgraded IE 9 To IE 10 and I got this error. Solution : Remove IE 10 and downgrade to IE 9. Go to "Programs and Features" --> "View recent updates" --> find IE 10---> Uninstall it-->reboot--->ie 9 is back--->debug--->works OK.

我刚刚在我的机器上解决了这个问题。我的问题是我把IE 9升级到ie10,我得到了这个错误。解决方案:删除IE 10并降级为IE 9。转到“程序和功能”——>“查看最近更新”——>找到IE 10——>卸载——>重启——> IE 9回来了——>调试——>运行正常。

#28


-1  

Try performing either of the following steps to resolve your issue:

尝试执行以下任何一个步骤来解决你的问题:

  • Restart your IIS Server
  • 重新启动IIS服务器
  • Clean the Solution of your project then build again
  • 清理项目的解决方案,然后再次构建

If above steps do not help, you can finally try restarting your machine

如果上面的步骤没有帮助,您可以尝试重新启动您的机器。

#29


-1  

in your cmd type iisreset and press enter after that your iis is reset and your application is working perfectly

在cmd类型的iisreset中,在iis重置之后,你的应用程序运行良好,然后按enter