ゴーをC:\ユーザー{ユーザー名} \ドキュメント\ IISExpress \ CONFIGとのapplicationHost.configファイルを開きます。
文書内の<sites>
タグを検索します。次のような行が表示されます。
<site name="WebSite1" id="1" serverAutoStart="true">
<application path="/">
<virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:8080:localhost" />
</bindings>
</site>
<binding protocol="http" bindingInformation="*:8080:localhost" />
を次のように置き換えます。
<binding protocol="http" bindingInformation="*:{required_port_number}:*" />
私はあなたにもbindingInformation
で*
マークを外すことができると思います。
その後、IISサーバーを再起動します(タスクマネージャを使用して、すべてのIISサーバー関連の操作を削除し、Cに移動:\プログラムファイル\ IIS Expressのにフォルダをiisexpress.exeを実行します。あなたが管理者として実行する必要があります)。
コンソールが開き、すべてがうまくいけば、次の行が表示されます。
Successfully registered URL "http://*:{required_port_number}/" for site "Website1" application "/" ...
また、必要なURLが機能するようになりましたかどうかをブラウザで確認してください。
Here's a very useful resource...
答えに回答部分を抽出して受け入れる必要があります。これは、あなたが他の投稿を読む場合のFAQのフォーマットです。 –
チップをありがとう。 –