Setting localhost alias in IIS Express for Visual Studio

前端 未结 3 1058
再見小時候
再見小時候 2021-02-20 01:06

I\'m trying to define an alias to localhost in development ambient in Visual Studio 2013.

When I used previous versions of Visual Studio, I used the Visual Studio Develo

3条回答
  •  灰色年华
    2021-02-20 01:47

    I encountered a similar error here, and it turned out that the solution could be found at: http://stonycreektechnologies.com/2011/03/15/iis-express-enable-remote-requests/

    For me, this was just a case of running the command there (I used it for port 8080 and for the port for my project, 55968, just to be sure) and closing and reopening my project, editing my applicaitonhost.config file, and then changing the settings of the site through the visual studio gui.

    The other thing to be careful of is that you may get multiple entries for your port number in the applicationhost.config file. This is bad, you only want the one, so you're safe to cull off the other entries with the same port.

提交回复
热议问题