Visual Studio 2022 IIS Express Error - "The request is not supported"

Jordan Kirkbride 0 Reputation points
2024-10-14T13:17:35.3666667+00:00

I am trying to run a project via Visual Studio 2022 that uses IIS Express, but am unable to get past building the project. I get hit with the following error:Screenshot 2024-10-09 114134

When I run iisexpress.exe, it runs normally with no errors. I have tried everything I could find online such as changing the port, resetting config files, reinstalling IIS express...nothing has worked. Any ideas on what the issue is would be greatly appreciated!

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,156 Reputation points Microsoft External Staff
    2024-10-15T03:28:17.58+00:00

    Hi @Jordan Kirkbride

    Welcome to Microsoft Q&A! 

    What is your project type? You can create a new project and check if the error appears or not. 

    Please update your VS2022 to the latest version and manually delete the hidden .vs folder in your project folder.

    Then, run the VS as administrator, clean and rebuild the solution. 

    If you have a firewall or anti-virus software, please temporarily disable them. 

    If it doesn’t work, you can open the Command Prompt and navigate to the IIS Express installation folder to run the following command:

    iisexpress.exe /trace:error 

    It will show more detailed information about the error. 

    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.

     


Your answer

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