<!-- Web.Config Configuration File --><configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File --><configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
改成:
<customErrors mode="Off"/>
不明白
我做个单独的页面测试时可以的,但是我下了一个ASP.NET论坛就预览不了,好郁闷,我下了好多都不能的,都是这个错误,怎么回事呢?
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
这样设置 如果出现错误就会跳转道mycustompage.htm页面 不能看到实际的错误提示
改成:
<customErrors mode="Off"/> 后就可以看到实际的错误提示了
需要设置为 默认应用程序
不行的话,将web.Config贴出来分析下。