IIS Express Extension not starting and can't launch Asp Net app.
I enabled IIS in 'Turn Windows features on or off'
Installed IIS 10 Express
Installed VS Code IIS Express Extension
Tried reinstalling IIS Express and the extension. Still getting the same error.
Here you installed IIS, not IIS express. IIS Express is equivalent to a stripped-down version of IIS, which has almost all the functions of IIS, but it has no visual management interface, and all management operations are performed by modifying configuration files.
Download IIS Express from this link and install on the developer PC.
After installation, the IIS Express configuration files will be available in "Documents\IISExpress\config" and the IIS Express executable files will be available in the installation directory. For example: C:\Program Files\IIS Express; Set the environment variable path to "C:\Program Files\IIS Express". (Open advanced system settings -> Environment variables -> System Variables -> Path -> Edit ->New -> add the path C:\Program Files\IIS Express). About Using IIS Express, please refer this link.
Check if there is an IISExpress\config folder in your home folder. This is a common mistake when configuration files/folders are missing. If the directory does not exist, you will need to create the directory; or the directory may already exist and is just corrupted, you will need to delete the config directory and re-run
C:\Program Files (x86)\IIS Express>iisexpress.exe/trace:error