<!-- Web.Config 配置文件 --> <configuration> <system.web> <customErrors mode="RemoteOnly"/> </system.web> </configuration>
<!-- Web.Config 配置文件 --> <configuration> <system.web> <customErrors mode="On" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>