So, this is my first time diving into ASP.NET. I've programmed in C# before (Unity), but I've never made a ASP.NET app. The problem is, I can't seem to get SSL to work! When I create a new project using these steps , I get the following error:
However, it works perfectly fine when I go to Properties > Debug and uncheck "Enable SSL". I've also tried using Microsoft Edge, but it gives the same error. Here is what I have tried to fix this:
applicationhost.config
file in the .vs
folder ( source ).vs
folder and run a command ( more info here )netsh http show iplisten
- nothing was listed ( source )localhost
( source )As you can see, I've tried everything that has come to my mind. Could somebody please explain why this is happening? To re-iterate, this happens when I don't change any of the default code you get by following these steps , so it can't be a timeout or something.
I'm using IIS Express 10.0
( iisexpress_amd64_en-US.msi
from here ) with .NET Core 5.0
and Visual Studio 19
. As of now, everything is up to date.
I really, really hope you guys can help me with this,,. I would want to use https (because, ofc, its more secure than http).
EDIT : I have tried using Firefox, and who would've guessed? It's the same error. (PR_CONNECT_RESET_ERROR)
I ran into the same issue on a fresh Windows 10 and VS2019 install, for me this solved it
In short
IisExpressAdminCmd.exe setupsslUrl -url:https://localhost:PORT/ -UseSelfSigned
changing PORT for the port you're trying to use.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.