“Value does not fall within the expected range” when trying to add a reference in a project

后端 未结 9 639
栀梦
栀梦 2020-12-02 16:31

Suddenly I am getting this error \"Value does not fall within the expected range\" whenever I try to add a reference to any project. This also happens with a new blank proje

9条回答
  •  广开言路
    2020-12-02 17:15

    In my case, project was set to use local IIS (when the project set up to use local IIS but the app does not deployed there, it cannot load project but states clearly in the error message. However this time I was keep getting Value does not fall within the expected range with any other info.

    Only "solution" worked for me was:

    • Edit csproj file
    • Set to true
    • Set to false
    • Then reload the project.

    (after that you can set your local IIS again)

提交回复
热议问题