Common Net Core Issues when debugging a web app using IIS Express
Remote Access to Local ASP.NET Core Applications from Mobile Devices - Kloud Blog
https://marketplace.visualstudio.com/items?itemName=vs-publisher-1448185.ConveyorbyKeyoti
Error: unable to connect to web server 'IIS Express'
Solution: restart Visual Studio as Administrator
Error: Bad host name when starting using http://localhost:xxx
Solution:
Delete .vs folder (requires to close Visual Studio 2017)
The ssl port is used. Please check launchSettings.json, set "sslPort" to 0.
Error: This site can’t be reached when starting a SSL site
Solution:
To fix self-signed certificate on the local machine you need to:
Delete .vs folder (requires to close Visual Studio 2017)
Run these commands in cmd As Administrator:
cd "C:\Program Files (x86)\IIS Express"
IisExpressAdminCmd.exe setupsslUrl -url:https://localhost:12345/ -UseSelfSigned
Make sure you run VS2017 As Administrator and check if the issue addressed
Note: https://localhost:12345/ is what is in your launchSettings.json for HTTPS
Comments
Post a Comment