Visual Studio 2017 Error --Cannot connect to runtime process

前端 未结 10 1023
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 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 /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).

提交回复
热议问题