在web.config里配置了404错误页面,本地调试是没有错误的,但是一放到服务器上,却只显示iis默认的404错误页。
请问如何解决?谢谢!附web.config配置
    <customErrors mode="RemoteOnly" defaultRedirect="~/FileNotFound.aspx">
      <error statusCode="404" redirect="~/FileNotFound.aspx" />
    </customErrors>另,项目中使用了urlrewritingnet, IIS版本为6.0网上查过在global.asax的Application_Error中截获错误后跳转也不好使。请高人指点迷津!