[提问]
求解iis7 下的web.config 设置404出错
|
|
<customErrors mode=”On” defaultRedirect=”404.html”/>
在web.config上加了上面代码后出显500错误,是只要打开网站任何一个页面都出来500错误
求解
web.config全代码如下:
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="flase"/>
</system.webServer>
<system.webServer>
<urlCompression doStaticCompression="true" doDynamicCompression="true" />
</system.webServer>
<system.web>
<customErrors mode="off" />
<compilation debug="true"/>
</system.web>
</configuration> |
|
|
|
|
|
|
|
|
|
|
lwbo1987
发表于 2011-3-30 11:55:38
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
cdjwhh
发表于 2011-3-30 12:04:41
|
显示全部楼层
有没有谁懂的,问一下下面代码哪里出错!
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="flase"/>
</system.webServer>
<system.webServer>
<urlCompression doStaticCompression="true" doDynamicCompression="true" />
</system.webServer>
<system.web>
<customErrors mode=”On” defaultRedirect=”404.asp”/>
<compilation debug="true"/>
</system.web>
</configuration> |
|
|
|
|
|
|
|
|
|
|
lwbo1987
发表于 2011-3-30 12:40:31
|
显示全部楼层
|
|
|
|
|
|
|
|