IIS Express configuration not working

Biswas, Dip 0 Reputation points
2025-07-03T18:17:16.1633333+00:00

IIS Express 10.0 is installed along with VS 2022. However, asp.net web/api projects are not getting created/ existing web projects not getting loaded. I have uninstalled / reinstalled VS 2022 but IIS Express issue is still showing. I have tried running IISExpress from command prompt and getting same issue. I have even tried delete/copy of the config files at pre-installed location but still getting same issue.

User's image

enter image description here

User's image

Can someone help fixing this issue?

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

2 answers

Sort by: Most helpful
  1. Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 245 Reputation points Microsoft External Staff
    2025-08-08T10:19:59.3466667+00:00
    1. Close Visual Studio

    Make sure no instance of Visual Studio or IIS Express is running.

    1. Backup & Delete Corrupted Config Files

    Navigate to:

    %USERPROFILE%\Documents\IISExpress\config

    and

    C:\Program Files\IIS Express\config\templates\PersonalWebServer

    Backup the files somewhere safe.

    Delete the following if present:

    • applicationhost.config
    • aspnet.config
    • redirection.config
    1. Repair / Reinstall IIS Express ,Go to Apps & Features in Windows and search for IIS Express.

    Choose Repair option if Repair is not available, uninstall and then reinstall from: IIS Express 10 Download

    1. Restore Default Template Config Files if after reinstall the config files are still missing:

    Navigate to:

    C:\Program Files\IIS Express\config\templates\PersonalWebServer

    Ensure the following exist and are valid XML: 

    1. Reset permissions open command prompt as administrator and run as below

    icacls "C:\Program Files\IIS Express" /grant Users:(OI)(CI)F /T

    This ensures IIS Express can read its config files.

    6.Restart your PC and open Visual Studio.

    Create a new ASP.NET Web Application (.NET Framework). It should now configure IIS Express successfully.

    7.If Visual Studio still shows the error:

    Go to Tools → Options → Projects and Solutions → Web Projects

    Tick Use the 64-bit version of IIS Express for web sites and projects

    0 comments No comments

  2. Biswas, Dip 0 Reputation points
    2025-08-08T12:27:04.63+00:00

    Issue caused due to OneDrive sync. After uninstall/reinstall of OneDrive I was able to resolve the issue.

    Cause: One Drive unable to sync data. 

    Solution: OneDrive is stopping by looking at the internet. You can enable and sync the data. Restart your computer. There are multiple IISExpress folders, one synced to OneDrive and another local. Visual Studio tried to access the OneDrive folder, which was not synced to the local disk, and thus it failed.

    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.