How do you configure iis express for VS 2022?

zequion 446 Reputation points
2023-05-19T04:25:24.4166667+00:00

I use Windows 11, VS 2022 and Asp.net. I have installed iis from "Control Panel", "Programs and Features". I would like to be able to debug using IIS or IIS express. I have seen that the directory "C:\Program Files\IIS Express" exists. In Solution Explorer, "Properties", "Startup Options" only allows me to enable "Use default web server". How do you configure iis express and activate it in VS for debugging? Sin título

Developer technologies Visual Studio Other
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    2023-05-19T10:02:26.36+00:00

    Hello @zequion ,

    Welcome to Microsoft Q&A forum.

    Can you first open VS Installer > Modify > Individual components > Cloud, database, and server and confirm that IIS Express option is selected?

    I think there’s another option which may meet your requirement: Tools > Options > Projects and Solutions > Web Projects > Use the 64 bit version of IIS Express for web sites and projects.

    User's image

    Besides, I tried to create an asp .net web application, but the property page looks not quite like yours, can you confirm that you created an "ASP .NET Web Application (.NET Framework)" project? If you are using other project templates please let us know the project template name.

    User's image

    Sincerely,

    Tianyu


    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.

    3 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.