Failed to bind to address (already in use) error with Visual Studio Mac API

后端 未结 7 1782
隐瞒了意图╮
隐瞒了意图╮ 2021-01-21 03:34

I\'m attempting to create a Web API via .Net Core. I\'m just using the boilerplate ValuesController as a Hello World. When I run the project, I get the following error:

7条回答
  •  情话喂你
    2021-01-21 04:12

    I know this is late answer. But it may be helpful to somebody.

    There seems a bug with MAC Visual Studio, it always goes https://127.0.0.1/5001.

    If you right click on your project, select options. Then Project Options Dialog will appear. On the left pane, goto Run->Configurations->Default, then on the right pane select ASP.Net Core tab. There is App URL which is being used by default. Change it to your needs.

提交回复
热议问题