IIS Express - 500.19 Cannot read configuration file - because it's looking at the wrong path

前端 未结 14 1120
梦如初夏
梦如初夏 2021-02-01 00:42

I recently renamed my root TFS folder from D:\\TFS\\systemstfs to D:\\TFS\\sys because one of the project\'s paths was too long for Windows. Now, when

14条回答
  •  孤街浪徒
    2021-02-01 01:01

    In my case I replace .. in my path with a normal folder path.

    TL;DR

    I did the "clever" trick of utilising the relative path of my script file as I did not want to hard code my folder address.

    "C:\Program Files\IIS Express\iisexpress.exe" /path:"%~dp0..\Lagardsdorren\bin\Debug\netcoreapp2.2\publish" /port:44342
    

    I knew, but it took my some time to realise, that .. is non grata in IIS(express) as it makes it possible to path yourself out of your sites home directory. In my case it didn't but I guess IIS(express) just stops anything with .. in it.

    I don't know how to get back to my clever relative path, but that is for another question.

提交回复
热议问题