Debug .net core 2.0 app fails with error "invalid uri: the hostname could not be parsed." RRS feed

  • Question

  • User1100352516 posted


    when trying to lauch the Debugger from within VS 2017 I get suddenly an error box saying "Invalid uri: the hostname could not be parsed."

    It is a .Net Core 2.0 ASP.NET-Application, Profile/Launch IISExpress.

    Please help, I have no clue where to start to resolve that problem.



    Monday, January 15, 2018 8:05 AM


  • User1100352516 posted

    Ok, got it.

    VS 2017 is parsing the applicationhost.config file before lauching IIS Express.

    I've had changed the binding of the project web site to make it reachable from external clients:

              <binding protocol="http" bindingInformation="*:49754:*" />

    It was working initially without problem, but today suddenly I got the very unhelpful error message....

    Changed it to

              <binding protocol="http" bindingInformation=":49754:" />

    (note: no asterisks!)

    now I can reach IIS express from external clients and launch the VS debugger.



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 15, 2018 9:39 AM