我在runnig aspx页面时遇到此错误 [英] im getting this error while runnig aspx page

查看:100
本文介绍了我在runnig aspx页面时遇到此错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

详情: 启用的详细信息此特定消息 可在远程计算机上查看,请创建一个< ;&的customErrors GT; web.config配置文件中的标记 in 当前Web应用程序的根目录 。这个< customErrors>标签然后 mode attribute set to Off





如何解决它..

请支持我..

解决方案

该消息告诉您该怎么做:

创建一个< ; customErrors>标记位于当前Web应用程序根目录下的web.config配置文件中。此< customErrors>标记应将其mode属性设置为Off。



然后,您将能够看到有关错误的详细信息。没有它们,你和我都不能做任何事情,只能猜测。



以下是我的一个例子:

 <  配置 >  
< appSettings file = WebAppSettings.config < span class =code-keyword>>
...
< / appSettings >
< connectionStrings configSource = WebConnectionString.c onfig / >
< system.web >
< 授权 >
...
< / authorization >
< customErrors < span class =code-attribute> defaultRedirect = 〜/ Whoops.aspx mode = Off redirectMode = ResponseRewrite >
< 错误 statusCode = 403 重定向 = 〜/ NoAccess.aspx / >
...
< / customErrors >


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



how to resolve it..
pls support me..

解决方案

The message tells you what to to:

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


You will then be able to see the details about the error. Without them, neither you nor I can do anything but guess.

Here is an example from one of mine:

<configuration>
  <appSettings file="WebAppSettings.config">
    ...
  </appSettings>
  <connectionStrings configSource="WebConnectionString.config"/>
  <system.web>
    <authorization>
      ...
    </authorization>
    <customErrors defaultRedirect="~/Whoops.aspx" mode="Off" redirectMode="ResponseRewrite">
      <error statusCode="403" redirect="~/NoAccess.aspx"/>
      ...
    </customErrors>


这篇关于我在runnig aspx页面时遇到此错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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