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

This topic contains 0 replies, has 1 voice, and was last updated by  Webmaster 2 months, 3 weeks ago.

  • 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

You must be logged in to reply to this topic.