unable to start debugging on the web server

aleksw 6 Reputation points
2021-06-11T08:39:34.66+00:00

I think I did something wrong in my IIS. I am getting the error when I am trying to start my project in visual studio. Could you help me?

The error in visual studio:
104638-error1.png

The project configuration in visual studio:
104723-visual.png

The configuration in ISS:
104639-cert.png

I also added to C:\Windows\System32\drivers\etc:
127. 0.0.1 development.com.local

Windows development | Internet Information Services
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sam Wu-MSFT 7,561 Reputation points Microsoft External Staff
    2021-06-14T02:49:44.79+00:00

    Hi @aleksw

    You are using an external host, the host name will be redirected to your local IIS, so you need to run Visual Studio with administrator rights, so please check if you are running VS with administrator rights.

    If you still can’t solve the problem, you can refer to the link below for troubleshooting: Error: Unable to Start Debugging on the Web Server.

    There is also a link about the specific operation process of the entire configuration. You can check the document to see if there are any differences or omissions in some configurations.

    Remote Debug ASP.NET on a Remote IIS Computer.


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.