What I\'m doing:
My solution (for .net core 2.0) was that i had forgot to add the port number in the applicationUrl, under iisExpress in launchSettings.json
"iisExpress": { "applicationUrl": "https://localhost:50770", "sslPort": 50770 }