日期:2014-05-18  浏览次数:20385 次

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> 节点下,就会要客户端上显示详细的错误