CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  .NET技术 >  ASP.NET

高分求助,解决下列问题!

楼主laughingrat(傲笑红尘)2003-09-03 11:50:34 在 .NET技术 / ASP.NET 提问

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"/>  
          </system.web>  
  </configuration>  
     
   
  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"/>  
          </system.web>  
  </configuration>  
     
   
  问题点数:100、回复次数:9Top

1 楼sqhua(拉长弓兮射天狼)回复于 2003-09-03 11:58:07 得分 5

一般重启电脑就OKTop

2 楼cnhgj(戏子) (没时间练太极)回复于 2003-09-03 12:02:39 得分 15

把web.config里的  
  <customErrors   mode="RemoteOnly"设成  
  <customErrors   mode="Off"  
  然后再上传运行,看看是哪里出错,找出错误再改即可Top

3 楼acewang(龍芯*Inside!)回复于 2003-09-03 12:03:33 得分 40

你放的文件夹是不是改名或者删除了,重新定义下虚拟目录试试看。Top

4 楼chnking(kent)回复于 2003-09-03 12:17:34 得分 20

这表示你的程序出现错误了,而你在web.config的设置估计是:  
  <customErrors   mode="On">  
  所以出现错误后你的本机也看不到错误细节,你改成折这样:  
  <customErrors   mode="RemoteOnly">就能在你的本机上看到出错原因了  
  Top

5 楼cuike519(I will be back!)回复于 2003-09-03 12:28:51 得分 20

建议你搞一个错误页专门用来处理可预料和不可预料的错误!  
  现在你无法看到错误信息你可以把<customErrors   mode="On">改成  
  <customErrors   mode="Off"   />个就可以了!  
   
  这样你就可以看到错误的详细信息!也就是在debug的时候可以看到的!Top

6 楼laughingrat(傲笑红尘)回复于 2003-09-03 13:16:44 得分 0

谢谢诸位大哥,我的情况是这样的,文件是放在服务器端的,我在本机上调试。可是为什么会出错呢?  
  Top

7 楼laughingrat(傲笑红尘)回复于 2003-09-03 13:18:09 得分 0

我在本机上调试一切ok!然后原原本本拷贝到服务器端的。Top

8 楼zhxhjj()回复于 2003-09-03 13:23:27 得分 0

gzTop

9 楼laughingrat(傲笑红尘)回复于 2003-09-03 13:45:48 得分 0

呵呵,解决了!我将本站点的上一级目录设成了根目录,出现上述问题。于是我后来加了一个虚拟目录,一切ok了。谢谢大家的关注。给分!Top

相关问题

  • 高分求下列电子书
  • 请看下列代码,有查出错误者,高分回报!!!
  • 高分求购下列问题的解答
  • ★★★简单问题送高分★★★:为何下列sendkeys语句不起作用?
  • 如何分离下列字符串?
  • 请问高手,怎么样将下列的N条记录转换成一行呀,在线给分
  • 100分请高手帮忙给下列数据库中的日期改为列的形式
  • 怎么组织下列sql语句呀,菜鸟问题,20分!!!
  • 请问下列提示代表什么意思?来者有分!
  • 如何打印下列数字?(分可以再加)

关键词

  • tag
  • application
  • server
  • 错误
  • 看到
  • details
  • error
  • current
  • custom
  • page

得分解答快速导航

  • 帖主:laughingrat
  • sqhua
  • cnhgj
  • acewang
  • chnking
  • cuike519

相关链接

  • CSDN .NET频道
  • .NET类图书
  • C#类图书
  • .NET类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo