我试图发布我的网站,但上传到托管服务器后继续得到客户错误 [英] i m trying to publish my website but keep get custome error after uploading to hosting server

查看:81
本文介绍了我试图发布我的网站,但上传到托管服务器后继续得到客户错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试发布我的网站由ASP.net设计,但我一直得到这个错误





服务器错误'/'应用程序。



运行时错误



描述:服务器上发生了应用程序错误。此应用程序的当前自定义错误设置可防止远程查看应用程序错误的详细信息(出于安全原因)。但是,它可以由运行在本地服务器计算机上的浏览器查看。



详细信息:要在远程计算机上查看此特定错误消息的详细信息,请创建< customerrors>位于当前Web应用程序根目录中的web.config配置文件中的标记。这< customerrors>然后,tag应将其mode属性设置为Off。





<! - Web.Config配置文件 - - >



< configuration>

< system.web>

< customerrors mode = 关闭>







注意:您看到的当前错误页面可以替换为通过修改应用程序< customerrors>的defaultRedirect属性来自定义错误页面配置标记指向自定义错误页面URL。





<! - Web.Config配置文件 - > < br $> b $ b

< configuration>

< system.web>

< customerrors mode =RemoteOnlydefaultredirect =mycustompage.htm>


I'm trying to publish my website designed by ASP.net , but I keep get This error


Server Error in '/' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customerrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customerrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customerrors mode="Off">



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">

推荐答案

查看系统给出的消息。它包含有关如何以非常明确的术语获取实际错误的错误详细信息的说明。



按照这些说明,再次访问您的网站,您应该获得更多关于实际问题的相关信息。
Look at the message you have been given by the system. It contains instructions on how to get the error details for the actual error in pretty explicit terms.

Follow those instructions, access your site again, and you should get a more relevent message to the actual problem.


这篇关于我试图发布我的网站,但上传到托管服务器后继续得到客户错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆