Web Project using IIS, but I get error about configuration of IISExpress

后端 未结 3 721
Happy的楠姐
Happy的楠姐 2021-01-04 02:54

I\'m trying to load a project that uses port host header names. My host file has 127.0.0.1 mysite

I get the following error when attempting to load the project in V

相关标签:
3条回答
  • 2021-01-04 03:11

    Old question, but here's an answer:

    In either your Client.Web.csproj or Client.Web.csproj.user file, search for "UseIISExpress" and set that value to false. It'll be in one of those two files.

    Then VS2010 should be able to open and run/debug the project.

    0 讨论(0)
  • 2021-01-04 03:19

    In my case, the .csproj.user file was overriding the .csproj file. Solution is to delete .csproj.user file and reload the project

    0 讨论(0)
  • 2021-01-04 03:32

    Old question but this came up for me.

    What worked for me was to edit the .csproj.user file and set the element UseIIS to true.

    Clearly this is similar to deleting the .user file but this way you keep all the other settings

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