Ich versuche, einen Aliasnamen zu definieren, in der Entwicklung Umgebungs in Visual Studio 2013Einstellung localhost alias in IIS Express für Visual Studio
Als ich noch frühere Versionen von Visual Studio auf localhost, verwenden ich die Visual Studio Development Server diesen Eintrag zu debuggen und das einzige, was ich brauchte, war zu tun, um meine hosts-Datei Hinzufügen zu ändern:
127.0.0.1 localhost
127.0.0.1 localhostalias
ich Probleme habe dies mit VS2013 zu tun. Ich habe alle über das Internet durchsucht, und ich habe folgende Dinge ausprobiert, aber ich würde jemand von euch mir zu sagen, was mache ich falsch. Ich habe offensichtlich bereits die Hosts-Datei geändert ...
Im Web-Projekt Eigenschaften -> Web im Abschnitt Server, in denen IIS Express als Standard ausgewählt ist, habe ich versucht, http://localhost:53944
zu http://localhostalias:53944
zu ändern, aber ein Fehler wird angezeigt, sagen: " Unable to create the virtual directory. Cannot create the Web site 'http://localhostalias:53944'. You must specify "localhost" for the server name
".
Ich habe auch versucht die applicationhost.config Veränderung, die in <> \ IISExpress \ config zu
<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 als ich öffnete das Projekt, um es zu
geändert wurde befindet sich <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 jemand helfen mich?
Vielen Dank im Voraus,
Camilo