You are here
Home > ASP.NET Core > Operation Not Legal in the Current State – Debugging ASP.NET Core

Operation Not Legal in the Current State – Debugging ASP.NET Core

Operation Not Legal in the Current State

Operation Not Legal in the Current State

The other evening I was playing around with an ASP.NET Core application. When I started debugging it, I immediately saw an error message pop up that said

Unable to start program ‘http://localhost:59676/’. An operation is not legal in the current state.

It was a bit of a head scratcher, so I decided to restart the debug session and see if the problem resolved itself. This didn’t help and I saw the same error again.

Operation Not Legal in the Current State

I also saw that my Chrome browser had started up, but it wasn’t showing my web page. It was stuck on a notification page telling me that JavaScript debugging is now enabled in Visual Studio 2017 for Chrome.

This got me thinking…. if it is a feature, it must be able to be switched off.

Read more

Dirk Strauss
Dirk is a Software Developer and Microsoft MVP from South Africa. He loves all things Technology and is slightly addicted to Twitter and Jimi Hendrix. Apart from writing code, he also enjoys writing human readable articles. "I love sharing knowledge and connecting with people from around the world. It's the diversity that makes life so beautiful." Dirk feels very strongly that pizza is simply not complete without Tabasco, that you can never have too much garlic, and that cooking the perfect steak is an art he has yet to master.

Similar Articles

Top