您的位置:首页 > 运维架构 > 网站架构

网站在本地执行正常发布到服务器有部分页面出错--求解

2012-12-26 14:50 447 查看
.Net网站在本地执行正常发布到服务器有部分页面出错,可以为Null的值都做了处理还是不行。应该不是数据的问题,这是为什么呢?
报错信息如下:

ServerErrorin'/'Application.

RuntimeError

Description:Anapplicationerroroccurredontheserver.Thecurrentcustomerrorsettingsforthisapplicationpreventthedetailsoftheapplicationerrorfrombeingviewedremotely(forsecurityreasons).Itcould,however,beviewedbybrowsersrunningonthelocalservermachine.
Details:Toenablethedetailsofthisspecificerrormessagetobeviewableonremotemachines,pleasecreatea<customErrors>tagwithina"web.config"configurationfilelocatedintherootdirectoryofthecurrentwebapplication.This<customErrors>tagshouldthenhaveits"mode"attributesetto"Off".


<!--Web.ConfigConfigurationFile-->

<configuration>
<system.web>
<customErrorsmode="Off"/>
</system.web>
</configuration>

Notes:Thecurrenterrorpageyouareseeingcanbereplacedbyacustomerrorpagebymodifyingthe"defaultRedirect"attributeoftheapplication's<customErrors>configurationtagtopointtoacustomerrorpageURL.

<!--Web.ConfigConfigurationFile-->

<configuration>
<system.web>
<customErrorsmode="RemoteOnly"defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>




是代码问题还是服务问题?如果是服务器问题为什么只有少数页面报错呢

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐