0

Visual Studio unable to launch IIS Express server.

I just bought a new device (surface pro 6), copied a visual studio project from old device (surface pro 4) to new. then made a backup of the project database in sql server and restored that on new device. after all, when trying to view a CSHTML file in browser like google chrome, visual studio is unable to launch the IIS Express web server.

what do I have to do?

Arya
  • 71
  • 1
  • 8

1 Answers1

0

Arya, I see this... maybe help you:

==================================

I had the exact same problem. The reason - bad IIS config file. Try deleting the automatically-created IISExpress folder, which is usually located at %userprofile%/Documents, e.g. C:\Users[you]\Documents\IISExpress. Don't worry, VS should create it again - correctly, this time - once you run your solution again.

EDIT: Command line for deleting the folder:

rmdir /s /q "%userprofile%\Documents\IISExpress"

==================================

Unable to launch the IIS Express Web server

FabioIn
  • 137
  • 1
  • 2
  • 8