I've been working on an ASP.NET Core 2.1 web application in VS 2019 on a Windows 10 PC. Everything was working fine and no issue with debugging in Chrome/IIS Express.
I copied my project to a new Win 10 computer that I've just started to use.
When I try to debug the project with IIS Express in Chrome, I get an error page that says: This site can't be reached.
I followed all kinds of suggested fixes from Overflow articles but nothing seems to work. This is driving me mad, wasting so much time. I've tried all these steps but no joy:
- disable anti-virus firewall/protection
- check project properties (same as previous PC)
- check launchSettings.json file (same as previous PC)
- delete applicationhost.config in vs/config folder (post said this file will be recreated on rebuild but after rebuild file is still not there!)
- delete obj folder and rebuild
- delete vs folder and rebuild
- Check Windows Features (same as old PC which is working fine)
- change VS Options/Debugging: Uncheck the Enable Edit and Continue check box
- run cmd as administrator: cd "C:\Program Files (x86)\IIS Express"IisExpressAdminCmd.exe setupsslUrl -url:https://localhost:44301/ -UseSelfSigned
launchSettings.json file
launchSettings.json{"iisSettings": {"windowsAuthentication": true,"anonymousAuthentication": true,"iisExpress": {"applicationUrl": "https://localhost:44301/","sslPort": 44376 } },"profiles": {"IIS Express": {"commandName": "IISExpress","launchBrowser": true,"environmentVariables": {"ASPNETCORE_ENVIRONMENT": "Development" } },"CanvasWeb": {"commandName": "Project","launchBrowser": true,"environmentVariables": {"ASPNETCORE_ENVIRONMENT": "Development" },"applicationUrl": "http://localhost:61900/" } }}
UPDATE
I tried the following actions but still not resolved the problem:
- ran repair of IIS Express
- checked no duplicate certificates in cert store
- deleted certificate to make IIS generate new one
- created a new "test" project - same problem occurs