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

Radenko Zec picture Radenko Zec · Mar 9, 2017 · Viewed 145.1k times · Source

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:

Unable to start program, An operation is not legal in the current state

Answer

ABVincita picture ABVincita · Mar 14, 2017

For me, the solution (workaround) is to turn off JavaScript debugging on Chrome, which I believe is a new feature introduced in VS 2017.

Go to Tools > Options > Debugging > General and turn off the setting for Enable JavaScript Debugging for ASP.NET (Chrome and IE).

VS2017 Disable JS Debugging

This is a known issue already, and seems to have an investigation underway.

Full information about JS debugging in VS 2017 here: https://blogs.msdn.microsoft.com/webdev/2016/11/21/client-side-debugging-of-asp-net-projects-in-google-chrome/