2

I have deployed my .net core 2.1 application on local IIS but I can't debug my application. I have also tried attaching with w3wp.exe process of my own created "No managed code" application pool but still can't debug my app.

Updated: I had found a solution to run dotnet.exe and my deployed process together and I succeeded one time but after that dotnet.exe disappeared from the process list and I can't find it anywhere but it exists in C:/ProgramFiles/dotnet I have also tried restarting VS but still no luck. So can I get dotnet.exe process back?

4
  • learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/… Commented Aug 2, 2018 at 13:04
  • 2
    w3wp.exe only loads ASP.NET Core Module and work as reverse proxy, so attaching to it won't work. You need to attach to the actual Kestrel process. Commented Aug 2, 2018 at 13:05
  • I cannot fine dotnet.exe in my process list. I restarted VS and it was available in the process list and I debugged my app one time but then it disappeared again and now I can't find it again even after restarting Commented Aug 2, 2018 at 14:13
  • Kestrel process would only appear if a request is being processed. Send requests from a web browser, and you should be able to trigger it. Please refer to the document I linked earlier to learn how Visual Studio should be configured. Commented Aug 2, 2018 at 14:28

1 Answer 1

1

Ok, so with the help of Lex Li comments and google, I have found the solution of debugging Asp.net core app deployed on local IIS. We need to attach with 2 processes to debug the app

  1. dotnet.exe
  2. devenv.exe (the title of devenv.exe would be the same name by which our app is deployed on IIS.

Note: sometimes we might not find dotnet.exe process in the "Attach to process" list even it would be available in C:\ProgramFiles\dotnet. So we just need to refresh our IIS deployed app on browser and dotnet.exe process will be available in the list then.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.