<customErrors mode="Off"/> 
是自定义错误没有打开的意思
改成<customErrors mode="On"/>吧,呵呵. 
<!-- Web.Config Configuration File --> <configuration> 
     <system.web> 
         <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> 
     </system.web> 
</configuration> 这个是只允许在客户端(远程)机上才出现自定义错误的意思
至于要改成什么,我也忘记了,呵呵...