26

これは applicationhost.config ファイルで可能であると想定していますが、親パスの設定が表示されませんでした。

IIS Express で実行されている特定のサイトの親パスを許可するにはどうすればよいですか?

4

2 に答える 2

47

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 を保存して再起動します。

于 2011-03-21T09:30:59.600 に答える
2

以下はあなたを動かすはずです。

  • 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

于 2011-01-26T05:05:41.327 に答える