これは applicationhost.config ファイルで可能であると想定していますが、親パスの設定が表示されませんでした。
IIS Express で実行されている特定のサイトの親パスを許可するにはどうすればよいですか?
これは applicationhost.config ファイルで可能であると想定していますが、親パスの設定が表示されませんでした。
IIS Express で実行されている特定のサイトの親パスを許可するにはどうすればよいですか?
C:\Documents and Settings\$your user name$\My Documents\IISExpress\config に移動します
applicationHost.config を開く
<system.webServer>
セクションを探す
セクションを次のように変更し<asp>
ます...デフォルトでは、キャッシュと空の制限ビットのみがありましたが、不要なパラメーターを自由に調整してください.
<asp
enableParentPaths="true"
bufferingOn="true"
errorsToNTLog="true"
appAllowDebugging="true"
appAllowClientDebug="true"
scriptErrorSentToBrowser="true">
<session allowSessionState="true" />
<cache diskTemplateCacheDirectory="%TEMP%\iisexpress\ASP Compiled Templates" />
<limits />
</asp>
iis Express を保存して再起動します。
以下はあなたを動かすはずです。
32bit システムの場合"%programfiles%\iis express\appcmd" set config "Default Web Site/myapp -section:asp -enableParentPaths:true
64 ビット システムの場合"%programfiles(x86)%\iis express\appcmd" set config "Default Web Site/myapp -section:asp -enableParentPaths:true
関連する IIS 7 構成リファレンスへのリンク: http://www.iis.net/ConfigReference/system.webServer/asp