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

后端 未结 7 1788
隐瞒了意图╮
隐瞒了意图╮ 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:01

    Assuming that you are using default port:

    this usually happens when a process gets corrupt and is disconnected from visual studio.

    If you are on mac, open activity monitor and kill the process by name "dotnet"

    If you are using a non standard port: then you need to change the port number to an available one. There is a solution from Amit on this thread, use that to change the port.

提交回复
热议问题