【发布时间】:2021-08-09 02:55:33
【问题描述】:
我发布了我的 Blazor 项目。然后,当我通过“dotnet myapp.dll”从命令行运行它时,会出现以下错误:
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.
我已经更改了 launchsettings.json 中的端口,但这没有任何效果。它仍然使用端口 5000。我可以在哪里更改已编译的 blazor 项目的端口?
【问题讨论】: