-1

I just created the default 'ASP.NET Core Web API' from Visual Studio 2019, hit F5 and I have this message 'This site can't be reached'.

I tried changing the port and other solutions found online but can't make it work. Important detail, it works on my personal computer but not my pro.

AnthonyDa
  • 493
  • 15
  • 34
  • 1
    Does this answer your question? [This site can't be reached error](https://stackoverflow.com/questions/44896765/this-site-cant-be-reached-error) – Kraego Sep 24 '21 at 07:07
  • Already saw this one and sadly it does not solve my issue. I don't have Web settings in this type of project – AnthonyDa Sep 24 '21 at 07:16

2 Answers2

0

I managed to make it work by unchecking 'Enable SSL' in the Debug settings

AnthonyDa
  • 493
  • 15
  • 34
0

FINALLY found out that this could be due to SSL certificate error. For me helped this (in the command line with admin privileges):

cd "C:\Program Files\IIS Express"
IisExpressAdminCmd.exe setupsslUrl -url:https://localhost:444 -UseSelfSigned

Please change the port from 444 to your port