C
C#7mo ago
Natty

HTTPS vs HTTP

When running my .net web api from visual studio via the green 'https' button i get: Yet when publishing it to a folder and running it via dotnet project.server.dll i get:
No description
No description
1 Reply
Natty
Natty7mo ago
I don't understand why i go from https and port 5001 in visual studio, to http and port 5000 via publish folder. How can I resolve this? Even specifying with: dotnet server.dll --launch-profile https doesn't change it. damn spent all day on this. Got it:
dotnet server.dll --urls "https://localhost:5001"
dotnet server.dll --urls "https://localhost:5001"