<system.web>
<customErrors mode="On" defaultRedirect="404.html">
<error statusCode="404" redirect="404.html" />
</customErrors>
</system.web>
把这段代码加在web.config里面也没用,求助大神,谢谢!
<system.web>
<customErrors mode="On" defaultRedirect="404.html">
<error statusCode="404" redirect="404.html" />
</customErrors>
</system.web>
把这段代码加在web.config里面也没用,求助大神,谢谢!
出了在web.config里面设置 还要在iss里面也设置才行!
在弹出的【编辑自定义错误属性】子窗口的“文件”输入框中修改为你需要的文件路径名,最后点击确定按钮完成设置,再重启 IIS服务即可看到效果