Einstellung localhost-alias im IIS Express für Visual Studio

Ich versuche, definieren Sie einen alias für localhost in der Entwicklung ambient in Visual Studio 2013.

Wenn ich in den vorherigen Versionen von Visual Studio, die ich verwendet Visual Studio Development Server zu Debuggen, und das einzige, was ich tun musste, war meine hosts-Datei hinzufügen dieses Eintrags:

127.0.0.1   localhost    
127.0.0.1   localhostalias

Ich habe Probleme mit VS2013. Ich habe durchsucht alle über das internet und ich habe versucht, die folgenden Dinge, aber ich möchte, dass jemand von Euch mir sagen was ich falsch mache. Ich habe es natürlich bereits verändert die hosts-Datei...

In der web-Projekt-Eigenschaften -> Web in der Rubrik Server, auf denen IIS Express als default ausgewählt, ich habe versucht, die änderung http://localhost:53944 zu http://localhostalias:53944 aber eine Fehlermeldung zeigte, die sagen: "Unable to create the virtual directory. Cannot create the Web site 'http://localhostalias:53944'. You must specify "localhost" for the server name".

Ich auch versucht, die änderung der applicationhost.config befindet sich im <>\IISExpress\config

        <site name="<<Site name>>" id="2">
            <application path="/" applicationPool="Clr4IntegratedAppPool">
                <virtualDirectory path="/" physicalPath="<<Site Path>>" />
            </application>
            <bindings>
                <binding protocol="http" bindingInformation="*:53944:*" />
            </bindings>
        </site>

Und wenn ich das Projekt geöffnet wurde geändert, um

        <site name="<<Site name>>" id="2">
            <application path="/" applicationPool="Clr4IntegratedAppPool">
                <virtualDirectory path="/" physicalPath="<<Site Path>>" />
            </application>
            <bindings>
                <binding protocol="http" bindingInformation="*:53944:*" />
            </bindings>
        </site>
        <site name="<<Site name>>(1)" id="3">
            <application path="/" applicationPool="Clr4IntegratedAppPool">
                <virtualDirectory path="/" physicalPath="<<Site Path>>" />
            </application>
            <bindings>
                <binding protocol="http" bindingInformation="*:53944:localhost" />
            </bindings>
        </site>

Kann mir jemand helfen?

Vielen Dank im Voraus,

Camilo

InformationsquelleAutor camilo888 | 2014-02-21
Schreibe einen Kommentar