AppHost project crashes on startup: System.UriFormatException: Invalid URI: The hostname could not be parsed. #5587
Labels
area-app-model
Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Milestone
Is there an existing issue for this?
Describe the bug
Hey, just trying to integrate Aspire into my existing solution. The first time I tried it, it threw this on startup:
I eventually narrowed this down to using an
applicationUrl
of"http://*:80"
in my web API'slaunchSettings.json
. I had this set to listen on all IP addresses as I need to connect to my web API from my smartphone.Expected Behavior
This is my first time using Aspire so I don't have the context to know why it reads
launchSettings
, but perhaps these URLs could be skipped. I think in any case the error message could be improved, as I only narrowed it tolaunchSettings
by checking the Aspire source code.Steps To Reproduce
applicationUrl
tohttp://*:80
in the web API'slaunchSettings.json
:Exceptions (if any)
.NET Version info
Anything else?
Aspire.Hosting.AppHost
v8.2.0.The text was updated successfully, but these errors were encountered: