Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state
Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state
Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state
Re: Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state
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)**.
[](https://i.sstatic.net/jPqw8.png)
This is a known issue already, and [seems to have an investigation underway](https://developercommunity.visualstudio.com/content/problem/25008/chrome-debugging-crashes-vs-with-an-operation-is-n.html).
Full information about JS debugging in VS 2017 here:
[https://devblogs.microsoft.com/dotnet/client-side-debugging-of-asp-net-projects-in-google-chrome/](https://devblogs.microsoft.com/dotnet/client-side-debugging-of-asp-net-projects-in-google-chrome/)
Go to **Tools > Options > Debugging > General** and turn off the setting for **Enable JavaScript Debugging for ASP.NET (Chrome and IE)**.
[](https://i.sstatic.net/jPqw8.png)
This is a known issue already, and [seems to have an investigation underway](https://developercommunity.visualstudio.com/content/problem/25008/chrome-debugging-crashes-vs-with-an-operation-is-n.html).
Full information about JS debugging in VS 2017 here:
[https://devblogs.microsoft.com/dotnet/client-side-debugging-of-asp-net-projects-in-google-chrome/](https://devblogs.microsoft.com/dotnet/client-side-debugging-of-asp-net-projects-in-google-chrome/)