Web.Config文件里面的
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
-->
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>
好像从来不会被执行到。
我在IIS6里面添加了通配符映射。
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
-->
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>
好像从来不会被执行到。
我在IIS6里面添加了通配符映射。
我想知道怎样才可以使Web.Config里面的起作用
1.1这样配置就够了。
你测试过没有?
我修改了好像还是不可以
麻烦再看一下好么?
我问的是.Net2.0,不是1.1
不一样的,也别想当然。