我假设在applicationhost.config文件中可以这样做但我没有看到父路径设置。
如何允许在IIS Express下运行的特定站点的父路径?
答案 0 :(得分:45)
浏览到C:\ Documents and Settings \ $您的用户名$ \ 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。
答案 1 :(得分:2)
以下内容可以帮助你。
在32位系统"%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