Не удалось запустить ошибку Kestrel в веб-API .net core

avatar
Tomy Thomas
1 июля 2021 в 16:12
143
0
0

Я получаю следующую ошибку в своей локальной среде.

Microsoft.AspNetCore.Server.Kestrel[0]
Unable to start Kestrel.

System.Net.Sockets.SocketException (10013): An attempt was made to access a socket in a way
   at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException (SocketError er
   at System.Net.Sockets.Socket. DoBind (EndPoint endPointSnapshot, SocketAddress socketAddres
   at System.Net.Sockets.Socket. Bind (EndPoint localEP)
   at Microsoft.AspNetCore.Server.Kestrel. Transport.Sockets.SocketConnectionListener.<Bind>g
   at Microsoft.AspNetCore.Server.Kestrel. Transport.Sockets.SocketConnectionListener.Bind()
   at Microsoft.AspNetCore.Server.Kestrel. Transport.Sockets.SocketTransportFactory.BindAsync
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal. Infrastructure. TransportManager.BinddpointConfig)
   at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass29_0`1.<<S
   -- End of stack trace from previous location---
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(List
   at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.BindAsync (AddressBindContext co
   at Microsoft.AspNetCore.Server.Kestrel.Core.AnyIPistenOptions.BindAsync (AddressBindConte
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy. Bind
   at Microsoft.AspNetCore.Server. Kestrel.Core.Internal.AddressBinder.BindAsync(IEnumerable
   at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(Cancellation Token
   at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync [TContext] (IHttpA
Источник
b2f
1 июля 2021 в 17:23
0

Можете ли вы добавить воспроизводимый пример? Кроме того, порт доступен или у вас есть права на открытие этого порта?

Ответы (0)