服务器中的运行时错误 [英] Runtime Error in server

查看:71
本文介绍了服务器中的运行时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我创建了一个aspx页面并上传到服务器中它有web.config文件每当我在服务器中打开上传的aspx页面时我在浏览器中遇到以下错误可能是什么问题?





运行时错误



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



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





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



< configuration>

< system.web>

< customerrors mode = 关闭>







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

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



< ;配置>

< system.web>

< customerrors mode =RemoteOnlydefaultredirect =mycustompage.htm>







请给出建议...

Hi i created one aspx page and uploded into server it''s having web.config file whenever i opening the uploaded aspx page in server i am getting the following error in my browser what may be the problem??


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



Please give a suggestion...

推荐答案

设置自定义错误模式关闭



set custom error mode as off

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


这篇关于服务器中的运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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