Link to home
Create AccountLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

How do I debug with IIS? (Not IIS Express)

I use Visual Studio 2022 Enterprise. Must I run VS installer? I did and do not see an option for IIS.

I run Windows 11.

IIS Express is an option for VS Installer, but I do not see IIS...

User generated image

Is this where I would assign IIS?

User generated image

Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of curiouswebster


Could you please explain how to override this? I did get a one-time pop-up with:


and I hit Enter.

Then it showed me:

"Unable to start debugging on the web server. The remote server returned an error: (430) Forbidden."

"Click Help for more information."

What shall I do next?

Also, this no longer works, but it did a few minutes ago:

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /pages/login.aspx

Also fails on port 80...
Is IIS installed on your PC? what happens when you just enter in the browser as localhost and hit enter. Were you able to see this?

Yes, I see that default page. Same as when I append :80.

If I append :90, I get an error.
OK I guess you are aware of this process you can add application in IIS add it and run from there and see

That was done already, and was working.
OK from there you can debug just attach the process from Debug menu in visual studio by selecting the respective W3P.exe

I found that when I used MS Edge as the browser, things worked once I set "Use default Web Server" in the image I posted, above.