C#: VIsualStudio 2017 IISE Setup Considerations

Simple Answer

It looks like you are missing a binding information entry in applicationhost.config file.

  1. Open your applicationhost.config file. Possible locations are:

    • %userprofile%\Documents\IISExpress\config\applicationhost.config
    • $(solutionDir)\.vs\config\applicationhost.config (VS2015)
    • Failing that, inspect the output from iisexpress.exe to be sure.
  2. Locate your WebSite entry and add following binding with your machine name.

         <binding protocol="http" bindingInformation=":50333:your-machine-name" />
    
  3. Restart IIS Express


 

Complex Answer


Even more complex answer

Found the problem had to do with a bad urlacl mapping. To figure this out:

netsh http show urlacl 

and look for things like http://+:80/ or the port you are binding to.

Then use

netsh http delete url=<the url from the list>

This fixed the problem for me.