读书人

webconfig的设置有关问题

发布时间: 2012-04-01 17:23:46 作者: rapoo

webconfig的设置问题
各位大哥帮忙,我迷惑了
我一个asp.net程序。本机测试没问题,上传到服务器上,其他页面都没有问题,都能正常访问,只有其中一个页面提示,如下代码。
这个页面也没有和其他页面没有什么不同,都是一样的写法。。为什么一个程序会有这样一个页面呢?帮忙呀。。。要死了。 。

<!-- 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 "/>

把这个放到 <system.web> 节点下,就会要客户端上显示详细的错误

读书人网 >asp.net

热点推荐