How to automatically choose a free port in ASP.NET Core 3.0

added by DotNetKicks
4/14/2020 10:29:20 AM

271 Views

This post is in response to a discussion I had with a friend recently who was trying out .NET Core. Unfortunately, when they attempted to start their new application they received the following message: crit: Microsoft.AspNetCore.Server.Kestrel[0] Unable to start Kestrel. System.IO.IOException: Failed to bind to address http://127.0.0.1:5000: address already in use.


0 comments