转到 C:\Documents and Settings\$your user name$\My Documents\IISExpress\config目录,打开applicationHost.config文件
找到
<asp scriptErrorSentToBrowser="true">
<cache diskTemplateCacheDirectory="%TEMP%\iisexpress\ASP Compiled Templates" />
<limits />
</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.
参考:
http://www.iis.net/ConfigReference/system.webServer/asp