Cannot attach debugger to w3wp

后端 未结 9 1092
故里飘歌
故里飘歌 2020-12-16 10:02

I\'m debugging an ASP.NET application but sometimes cannot find w3wp neither in Visual Studio process list (Menu: Debug -> At

9条回答
  •  一生所求
    2020-12-16 10:36

    Same thing was happening to me, when i remembered that IIS has an idle timeout! As above the proc w3wp is running, but VS2010 looks at it in the sleep state and thinks its not running, so dos'nt show it in the list...

    spinning up IIS [calling a site served from locahost in your favourite web browser] reactivates IIS and suddenly VS can see the process [w3wp] now too

    NOTE - must ask MS to ignore the sleep state of IIS/w3wp and if it is in sleep mode - cause it to automatically wake up!

    thanks

提交回复
热议问题