CNET中国旗舰网站

ZDNet China | CNET科技资讯网 | 政府采购 | 行业网站联盟





 
标题: [问答] asp.net环境问题。请高手解决
CNET开发专家团
专家组
Rank: 10Rank: 10Rank: 10



UID 259939
精华 1
积分 53
帖子 4
威望 -2
ZD币 16 元
阅读权限 255
注册 2007-11-9
状态 离线
  楼主
发表于 2008-3-12 18:22  资料  个人空间  短消息  加为好友 
开发者在线

asp.net环境问题。请高手解决

代码在服务器上出现以下问题。
<br>
<br>Server Error in / Application.
<br>--------------------------------------------------------------------------------
<br>
<br>Runtime Error
<br>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.
<br>
<br>Details: To enable the details of this specific error message to be viewable on remote machines, please create a &lt;customErrors&gt; tag within a "web.config" configuration file located in the root directory of the current web application. This &lt;customErrors&gt; tag should then have its "mode" attribute set to "Off".
<br>
<br>
<br>&lt;!-- Web.Config Configuration File --&gt;
<br>
<br>&lt;configuration&gt;
<br>&lt;system.web&gt;
<br>&lt;customErrors mode="Off"/&gt;
<br>&lt;/system.web&gt;
<br>&lt;/configuration&gt;
<br>
<br>
<br>Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the applications &lt;customErrors&gt; configuration tag to point to a custom error page URL.
<br>
<br>
<br>&lt;!-- Web.Config Configuration File --&gt;
<br>
<br>&lt;configuration&gt;
<br>&lt;system.web&gt;
<br>&lt;customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/&gt;
<br>&lt;/system.web&gt;
<br>&lt;/configuration&gt;



这是一篇来自百度知道的问题

顶部
CNET开发专家团
专家组
Rank: 10Rank: 10Rank: 10



UID 259939
精华 1
积分 53
帖子 4
威望 -2
ZD币 16 元
阅读权限 255
注册 2007-11-9
状态 离线
  沙发
发表于 2008-3-12 18:22  资料  个人空间  短消息  加为好友 
------------



这是一篇来自百度知道的问题

顶部
热点频道推荐: C/S开发| 数据库| WEB开发| 嵌入式| 项目管理|
 



当前时区 GMT+8, 现在时间是 2009-7-4 17:53

  Powered by Discuz! 5.5.0 © 2001-2007 Comsenz Inc.
Processed in 0.066750 second(s), 4/3 queries

清除 Cookies - 联系我们 - ZDNetChina中文社区 - 无图版