Unable To Start Program http://localhost An Operation Is Not Legal

IT Support Forum Forums Development C# Development IDEs Unable To Start Program http://localhost An Operation Is Not Legal

Viewing 0 reply threads
  • Author
    Posts
    • #2150
      Webmaster
      Keymaster

      When trying to launch a web program in Visual Studio 2017 via Google Chrome, you get this error:

      Unable to start program http://localhost:xxx

      An operation is not legal in the current state

      Google Chrome will display this message:

      Chrome script debugging in Visual Studio is enabled…

      The program is unable to start because JavaScript debugging for ASP.NET (Chrome and IE) is turned on.

      To fix this:

      1. In Visual Studio, click Tools -> Options
      2. Navigate to Debugging -> General
      3. Untick Enable JavaScript debugging for ASP.NET (Chrome and IE)
      4. Click OK
      5. Stop debugging, then try again

Viewing 0 reply threads
  • You must be logged in to reply to this topic.