Visual Studio 2026 multiple startup projects: API project not reachable, but works from terminal
I have a solution with two ASP.NET Core projects: Web.Api — minimal API, listens on https://localhost:7124 (and http://localhost:5247) Web.UI — Blazor Server app, listens on https://localhost:7063, calls Web.Api over HTTP via IHttpClientFactory Web.UI calls Web.Api on the first page load (a middleware checks an API endpoint), so both projects must be running. The problem When I run both projects from two terminals, everything works: # Terminal 1 cd Web.Api dotnet run --launch-profile https # -> Now listening on: https://localhost:7124 # Terminal 2 cd Web.UI dotnet run --launch-profile https #
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.