web.config を使用せずに IISExpress で静的ファイルのみをホストすることは可能ですか?
html5 アプリケーション プロトタイプ (サーバー側コードなし) があり、AJAX でアクセスする REST-API をシミュレートする json ファイルがいくつかあるため、IISExpress Web サーバーで Web サイトをホストしたいと考えています。
main.html ファイルといくつかの api/data.json ファイルがあります。
VS-Project を作成すると、すべて正常に動作します。
すべての構成ファイルと VS 関連ファイルを削除し、サイトを手動で追加しました
appcmd add site /name:"HTMLStandalone" /bindings:http/*:56668 /physicalPath:"C:\Users\me\somefoler\myapp"
更新: 正常に動作します。applicationhost.config に次のエントリが作成されます。
<site name="HTMLStandalone" id="4">
<application path="/">
<virtualDirectory path="/" physicalPath="C:\Users\me\somefolder\myapp" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:56668" />
</bindings>
</site>
私がサイトを立ち上げた時
iisexpress.exe /site:HTMLStandalone
プロセスは失敗します:
Failed to translate binding to url prefix *:56668
Registration completed for site "HTMLStandalone"
Failed to process sites
Report ListenerChannel stopped due to failure; ProtocolId:http, ListenerChannelI
d:0
HostableWebCore activation failed.
web.config なしで静的ファイルのみをホストすることは可能ですか?