cannot debug in visual studios 2022

Phillip Johnson 1 Reputation point
2022-09-12T20:04:59.947+00:00

I am trying to debug my internal website in vs 2022. the site runs on a 2016 windows server and I am using vs on my win 10 computer.

when I try to debug using IIS Express i get prompted for the username and password over and over even when entering in the correct information. It will not connect doing this.

if I use External hosts I get an error that says unable to start dubbing on the web server IIS does not list a web site that matches the launched URL.
I am running vs as administrator, I have checked that all the features for IIS management tools are installed. I have also installed the remote debugger and it shows the initial connection from my system when i first start to debug.

I need to be able to debug my pages and would appreciate any help on this as I am unable to find a fix so far online.

Developer technologies | Visual Studio | Debugging
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2022-09-13T08:27:44.663+00:00

    Hi @Phillip Johnson ,

    Welcome to Microsoft Q&A!

    If you are debugging ASP.NET application, please refer to: Remote Debug ASP.NET on a Remote IIS Computer and check if the requirements are met.

    Meanwhile, please ensure that the version of ASP.NET used in your app is the same as the version you installed on the server.
    You can update your VS2022 to the latest version through Visual Studio Installer and try to restart IIS process.

    For ASP.NET Core application, you can refer to: Remote Debug ASP.NET Core on a Remote IIS Computer in Visual Studio.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.

    0 comments No comments

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.