网站在本地执行正常发布到服务器有部分页面出错--求解
2012-12-26 14:50
447 查看
.Net网站在本地执行正常发布到服务器有部分页面出错,可以为Null的值都做了处理还是不行。应该不是数据的问题,这是为什么呢?
报错信息如下:
Details:Toenablethedetailsofthisspecificerrormessagetobeviewableonremotemachines,pleasecreatea<customErrors>tagwithina"web.config"configurationfilelocatedintherootdirectoryofthecurrentwebapplication.This<customErrors>tagshouldthenhaveits"mode"attributesetto"Off".
Notes:Thecurrenterrorpageyouareseeingcanbereplacedbyacustomerrorpagebymodifyingthe"defaultRedirect"attributeoftheapplication's<customErrors>configurationtagtopointtoacustomerrorpageURL.
报错信息如下:
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> |
<!--Web.ConfigConfigurationFile--> <configuration> <system.web> <customErrorsmode="RemoteOnly"defaultRedirect="mycustompage.htm"/> </system.web> </configuration> 是代码问题还是服务问题?如果是服务器问题为什么只有少数页面报错呢 |
相关文章推荐
- 网站在本地执行正常发布到服务器有部分页面出错
- asp.net 2.0发布的网站本地IIS执行正常但发布到远程服务器上乱码的解决方法
- 页面在本地服务器显示正常,上传到服务器后用IE9打开部分样式丢失的问题
- 本地调试,ie 谷歌浏览器都正常,但是将网站部署到服务器上发现ie内核css样式出现问题
- Log4Net本地正常,发布到服务器却不能工作
- 内网发布外网访问+免费域名+tomcat+本地电脑做服务器搭建网站
- expect 脚本本地单独调用可以执行,apache 服务器调用不能正常执行
- require_once本地正常,上传到服务器出错
- is7.0中发布mvc网站,一直无法正常执行路由的解决办法
- IIS发布网站部分特殊配置--图片上传至别的服务器、iis配置 通配符应用程序映、iis配置 C#底层拦截.htm文件请求
- c#动态生成word,在本地可以执行,但发布到iis上出错解决方案
- IIS7.0 网站发布页面显示 500 - 内部服务器错误。您要查找的资源有问题,无法显示
- vs2010+SQL2008R2在本地发布成的网站,如何在服务器上配置环境与运行?
- IIS-IIS服务器,发布网站:出错版本问…
- IIS发布网站部分特殊配置--图片上传至别的服务器、iis配置 通配符应用程序映、iis配置 C#底层拦截.htm文件请求
- 本地调试一切正常,发布到IIS时候就出错,DLL版本问题引起的
- IIS7.0 网站发布页面显示 500 - 内部服务器错误。您要查找的资源有问题,无法显示
- IIS发布网站之后,页面图片和js未加载出错
- [PHP] 本地服务器正常,FTP上传到服务器后页面出现乱码
- 网站发布时出错-"服务器应用程序不可用",解决方法