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里面添加了通配符映射。

解决方案 »

  1.   

    IIS里面是可以的
    我想知道怎样才可以使Web.Config里面的起作用
    1.1这样配置就够了。
      

  2.   

    请问xiahouwen(武眉博<活靶子.NET>) 
    你测试过没有?
    我修改了好像还是不可以
    麻烦再看一下好么?
      

  3.   

    两年前测试过了http://www.aspxboy.com/asdfsadfaefw09r87023874.aspx
      

  4.   

    两年前.Net2.0还没有出来。
    我问的是.Net2.0,不是1.1
    不一样的,也别想当然。