IISExpress 8 Cannot read configuration file redirection.config

后端 未结 24 3035
日久生厌
日久生厌 2020-11-29 02:46

I\'m running Windows Server 2008 R2 (x64) with IISExpress8 and when navigating to

c:\\Program Files (x86)\\IIS Express>iisexpress.exe

i

相关标签:
24条回答
  • 2020-11-29 03:13

    In my case the 'My documents' folder for my work laptop was mapped to a network share. So when the work network was not available I was not able to open my solution.

    Change: These will have the value of my docs in network share. Change this to local

    I. Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Personal

    II. Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Personal

    For eg:

    Old value: \networkdrive\c$\Users\profile\Documents

    New value: C:\Users\profile\Documents

    See: https://blogs.msdn.microsoft.com/chiranth/2015/04/01/error-while-runningstarting-a-website-under-iisexpress-in-visual-studio/

    0 讨论(0)
  • 2020-11-29 03:18

    Right click on your project file and Edit the project file and remove the URL from IISUrl and reload your project then it will work

    0 讨论(0)
  • 2020-11-29 03:18

    In my case it happened when IISExpress was still active from a previous VS session and new instance of VS was run.

    The solution was to stop (or kill) IIS Express instance.

    0 讨论(0)
  • 2020-11-29 03:19

    If it is ASP.NET Core project

    Just try to change iis port in file launchSettings.json by path iisSettings:iisExpress:applicationUrl

    0 讨论(0)
  • 2020-11-29 03:20

    Fix was really simple for me >> Restart Visual Studio

    My setup:

    • Visual Studio 2015

    • Web projects use local IIS 8.5

    • I occasionally experience what I believe to be a VS bug where it converts some projects to use IISExpress (this is fixed by deleting the folder created in /This PC/Documents). This might be related.

    0 讨论(0)
  • 2020-11-29 03:21

    After installing IIS Express, copy all files from

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

    to

    %userprofile%\Documents\IISExpress\config

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