Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state

前端 未结 20 2419
醉话见心
醉话见心 2020-12-12 08:43

After fresh installation of Visual Studio 2017 I tried to run .NET Core Web project and when trying to run it on Chrome I am getting this error:

Unabl

20条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-12 09:10

    I found a workaround to this which worked for me.

    With Chrome selected as your browser, click the Debug menu and select Attach to Process....

    In the subsequent dialog, select Chrome.exe in the list and click the Select button for Attach to:. Tick the Native box, then Attach (or just double-click Chrome.exe):

    This starts the project running without launching the browser. Stop and restart in Chrome and the error is gone.

    Of course, another potential solution is to use a different browser but I like debugging in Chrome. :-)

提交回复
热议问题