Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unrecognized scheme in server address

I just tried to debug a project which is built with asp.net core 2.0. It however compiles successfully but failed when it starts the kestrel server.

The runtime exception I get is

Unrecognized scheme in server address ' http://localhost:56950/'. Only 'http://' is supported.

As far as I understood it, it has to do something with https:// server schemes. But I don't remember If I accidentally put https configuration somewhere.

I stumbled upon this source with no luck so far.

Can anyone put me in right direction ?

Error

enter image description here

like image 550
Manoz Avatar asked Sep 01 '25 01:09

Manoz


1 Answers

It looks like an issue with a leading 'space' - url should not begin with space.

Check why your address is starting from a 'wite' character - probably that's spell mistake in your config (see Project Properties -> web tab).

like image 141
Lukasz Mk Avatar answered Sep 02 '25 23:09

Lukasz Mk