IIS Express not working on vs code "Unable to start iisexpress"

762 Views Asked by At

Error message received

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.

2

There are 2 best solutions below

0
On

I enabled IIS in 'Turn Windows features on or off'

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.

The specified module could not be found. For more information about the error, run iisexpress.exe with the tracing switch enabled (/trace:error).

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

0
On

Do you have a Program.cs file within your Asp Net app? That is typically where .NET looks to find everything to start running.