IIS Express will not start

前端 未结 8 1094
长发绾君心
长发绾君心 2020-12-30 02:47

I\'m just putting this one out there since its a Google Zero-resulter which means I win a prize?

Cannot start IIS Express 7.5 after reinstall from one account, but I

相关标签:
8条回答
  • 2020-12-30 03:18

    After deleting config folder it was still not working then i followed this article and hit ctrl + F5..so it did run

    0 讨论(0)
  • 2020-12-30 03:21

    Check that the user its failing has a IISExpress\config folder in their home folder. If not then copy it over from the user where IISExpress is working. This is a common fault when the config files/folders are missing.

    0 讨论(0)
  • 2020-12-30 03:22

    I has 2 things to do to make it work

    1. try as everybody do

      1.1. Delete all files in C:\{users}\My Documents\IIS Express\config
      (Note: Don't worry it will re-create it automatically, if you afraid you can copy to some other place first)


    1. If it still not work, try this below

      2.1. Delete all files in {your project}\.vs\{your project}\config
      (Note: .vs\ folder is hidden make sure you show hidden folder first)

      2.2. in Visual Studio > Right click on your Project > select Properties

      2.3. Select "Web" Tab > in Project URL > change your port (Example: change from http://localhost:1096/ to http://localhost:1097/)

      2.4. Save and run your Project again.

    0 讨论(0)
  • 2020-12-30 03:24

    To clarify John's comment - the directory will be something like C:\users\jmitchell\My Documents\IISExpress\config. I assume John is correct in that if it doesn't exist you would need to create the directory.

    Alternatively the directory could already exist and just be corrupted. This is what I believe happened in my case. I had previously installed WebMatrix but ran into all sorts of issues today. After uninstalling IIS Express, Web Platform Installer, WebMatrix, and some SQL Server Management Objects, and then reinstalling WPI & WebMatrix, I came across this post.

    I actually got IIS Express to run successfully after deleting the config directory mentioned above, and then re-running C:\Program Files (x86)\IIS Express>iisexpress.exe /trace:error

    And I ONLY wasted two hours of my day on this! Thanks Microsoft!

    0 讨论(0)
  • 2020-12-30 03:28

    I got this problem after upgrading to Web Platform Installer 5.

    The quick fix for me was to also upgrade to Webmatrix 3 (http://www.microsoft.com/web/webmatrix/)

    0 讨论(0)
  • 2020-12-30 03:35

    using rider i had to remove this config file found here and that worked \.idea\config\applicationhost.config

    think this was caused when i removed VS

    0 讨论(0)
提交回复
热议问题