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


ASKER CERTIFIED SOLUTION
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

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

ASKER

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

https://locahost

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:
http://localhost/pages/login.aspx

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...
https://localhost:80/pages/login.aspx
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?


iis.PNG
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

iis.png
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
SOLUTION!

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.