Visual Studio breakpoints not being hit

后端 未结 19 2124
再見小時候
再見小時候 2020-12-04 18:59

I\'m working with an ASP.NET MVC project that seems to be having some issues when attaching to the IIS process (w3wp.exe). I\'m running the solution and IIS 8.5 on my own lo

19条回答
  •  情话喂你
    2020-12-04 19:36

    My case is not mentioned here:
    I have to run the web project on a fake domain (settup on IIS and /hosts/etc) because of the callbacks from a third party site.

    I was seeing two w3wp processes in the process list of VS:
    w3wp.exe User Name: IIS APPPOOL\Default app pool
    w3wp.exe User Name: IIS APPPOOL.svc

    I had to to manually attach to second one to be able to debug.

    So I realised the app pool of my Fake domain in iis is not set to "Default app pool"

    https://manage.accuwebhosting.com/knowledgebase/2532/How-to-change-application-pool-from-IIS.html

    As soon as I changed the domain's app pool to the "Default app pool" visual studio started to debug the web app.

提交回复
热议问题