2014-02-17 58 views
0

enter image description here服务器错误在c#

<system.web> 


    <customErrors mode="off" defaultRedirect="~/Contents/error.aspx"> 
    </customErrors> 
    <sessionState mode="InProc" cookieless="UseCookies" timeout="20"> 
    </sessionState> 

</system.web> 

添加系统的web.config code.i “接通” .still相同error.please检查这些代码以及改变为 的customErrors模式=。任何人都可以帮助我解决这个错误。

回答

2

如果您阅读错误,它会告诉您该属性需要为“RemoteOnly,On,Off”。您需要将属性mode="off"更改为mode="Off"