I am getting this error whenever I try to debug my project from visual studio.
I tried adding these settings to launchSettings.json but still no difference.
Had this issue today. Tried closing Visual studio 2017 and IIS Express but issue was still occurring. Tried running VS 2017 as Admin still got error. In the end I restarted Windows and issue no longer occurs.
By just restarting I was able to keep the "Enable JavaScript debugging for ASP.NET (Chrome, Edge and IE)" enabled.