Visual Studio 2017 Error --Cannot connect to runtime process

前端 未结 10 1009
Happy的楠姐
Happy的楠姐 2021-02-07 00:35

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.

相关标签:
10条回答
  • 2021-02-07 00:58

    I had installed another file editor (Code Writer) that set itself as the default program for a whole host of files that were previously set to Visual Studio. Between a combination of doing a VS Installer Repair, and manually changing other associations back to VS, and a reboot, it's working for me again.

    0 讨论(0)
  • 2021-02-07 01:04

    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.

    0 讨论(0)
  • 2021-02-07 01:07

    I used to receive similar error. Every time I tried to debug the process was crashing, this was related to javascript debugging.

    inside Debug -> Options you can disable it.

    Just uncheck the highlighted one:

    0 讨论(0)
  • 2021-02-07 01:07

    Had this issue in an ASP.NET Core project because in the project settings on debugging I had checked start browser but by mistake with an empty url. After I set the app url (http://localhost:5000 by default), it works well.

    You can also set this in the <project>/Properties/launchSettings.json file:

    "applicationUrl": "http://localhost:5000"
    

    Please note to set this to your app profile (IIS or if you want to use the build in webserver, the name if your app as key instead).

    0 讨论(0)
  • 2021-02-07 01:10

    Disable Script Debugging in Debugging options.

    0 讨论(0)
  • 2021-02-07 01:11

    What worked for me it was: disabling Chrome run on background

    You can then re-enable that on Chrome advanced settings:

    This was very annoying problem. I hope it can help someone else having the same issue.

    0 讨论(0)
提交回复
热议问题