<customErrors> tag should then have its "mode" attribute set to "Off". 
==
先按提示修改Web.config,这样你才能看到真实的出错信息

解决方案 »

  1.   


    默认是这样的 <!--
                如果在执行请求的过程中出现未处理的错误,
                则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
                开发人员通过该节可以配置
                要显示的 html 错误页
                以代替错误堆栈跟踪。        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
                <error statusCode="403" redirect="NoAccess.htm" />
                <error statusCode="404" redirect="FileNotFound.htm" />
            </customErrors>
            -->你把他修改成这样,把注释去掉然后修改mode为Off,这样你就可以看到错误信息了
    <customErrors mode="Off" defaultRedirect="ErrorPage.aspx">
    <error statusCode="403" redirect="NoAccess.htm"/>
    <error statusCode="404" redirect="FileNotFound.htm"/>
    </customErrors>