szubajak
szubajak

Reputation: 485

Visual Studio - Invalid URI: The hostname could not be parsed

Error screenshot

I'm getting this error during starting debug.

Upvotes: 5

Views: 5454

Answers (2)

David Castro
David Castro

Reputation: 1957

In my case I was using auth0 and I hadn't updated the Auth0 keys in the appsettings.json:

"Auth0": {
    "Domain": "CHANGE ME - https://manage.auth0.com/dashboard/ > Applications > Domain",
    "ClientId": "CHANGE ME - https://manage.auth0.com/dashboard/ > Applications > Client ID",
    "ClientSecret": "CHANGE ME - https://manage.auth0.com/dashboard/ > Applications > Client Secret"
}

Y replaced all of these values with the ones provided by Auth0 and worked like a charm!

Upvotes: 0

user1007074
user1007074

Reputation: 2586

I was able to resolve this issue by editing the launchSettings.json file in the startup project and removing wildcards from the applicationUrl value

Upvotes: 3

Related Questions