CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  .NET技术 >  ASP.NET

Runtime Error,上传网页上去后发生错误,本地却不会

楼主veritable(人在江湖漂)2005-09-01 00:12:58 在 .NET技术 / ASP.NET 提问

为何我的网页上传上去之后发生如下错误?  
  会不会和我使用的E文操作系统开发有关系?  
  在我本地是正常的  
  我根本没有修改过这个web.config文件啊  
  是不是哪些地方不匹配了?  
   
  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>  
     
  问题点数:10、回复次数:13Top

1 楼adandelion(水源是CSDN最黑的地方,但这个最黑是CSDN一手制造的!)回复于 2005-09-01 00:14:37 得分 10

<configuration>  
          <system.web>  
                  <customErrors   mode="Off"/>  
          </system.web>  
  </configuration>  
  ------------------  
  修改上面后,在远程可以看到错误信息了,根据错误信息解决问题。Top

2 楼veritable(人在江湖漂)回复于 2005-09-01 00:19:58 得分 0

本地文件是这样的  
          <!--     CUSTOM   ERROR   MESSAGES  
                      Set   customError   mode   values   to   control   the   display   of   user-friendly    
                      error   messages   to   users   instead   of   error   details   (including   a   stack   trace):  
   
                      "On"   Always   display   custom   (friendly)   messages      
                      "Off"   Always   display   detailed   ASP.NET   error   information.  
                      "RemoteOnly"   Display   custom   (friendly)   messages   only   to   users   not   running    
                      on   the   local   Web   server.   This   setting   is   recommended   for   security   purposes,   so    
                      that   you   do   not   display   application   detail   information   to   remote   clients.  
          -->  
          <customErrors    
          mode="RemoteOnly"    
          />    
   
          <!--     AUTHENTICATION    
                      This   section   sets   the   authentication   policies   of   the   application.   Possible   modes   are   "Windows",   "Forms",    
                      "Passport"   and   "None"  
          -->  
          <authentication   mode="Windows"   />    
   
  请问我要怎样修改啊?Top

3 楼veritable(人在江湖漂)回复于 2005-09-01 00:24:27 得分 0

我己经修改为On了,可还是不行,报的错误是一样的,还说是OffTop

4 楼veritable(人在江湖漂)回复于 2005-09-01 00:42:29 得分 0

请问:我把改成   <customErrors   mode="Off"/>后出来以下信息是什么意思?  
   
  Description:   An   error   occurred   during   the   processing   of   a   configuration   file   required   to   service   this   request.   Please   review   the   specific   error   details   below   and   modify   your   configuration   file   appropriately.    
   
  Parser   Error   Message:   The   'impersonate'   attribute   is   case   sensitive   and   must   be   set   to   'true'   or   'false'.  
   
  Source   Error:    
   
   
  Line   327:                         password="password   of   above   specified   account"   |   empty   string  
  Line   328:                 -->  
  //提示这句出了错   Line   329:                 <identity   impersonate="True"   />  
  Line   330:  
  Line   331:                 <authorization>  
     
  Top

5 楼adandelion(水源是CSDN最黑的地方,但这个最黑是CSDN一手制造的!)回复于 2005-09-01 00:43:37 得分 0

<customErrors   mode="Off"/>  
  改成"Off"而不是"On"Top

6 楼adandelion(水源是CSDN最黑的地方,但这个最黑是CSDN一手制造的!)回复于 2005-09-01 00:46:23 得分 0

完整的web.config贴出来。Top

7 楼veritable(人在江湖漂)回复于 2005-09-01 00:51:11 得分 0

<?xml   version="1.0"   encoding="utf-8"   ?>  
  <configuration>  
           
      <system.web>  
   
          <!--     DYNAMIC   DEBUG   COMPILATION  
                      Set   compilation   debug="true"   to   enable   ASPX   debugging.     Otherwise,   setting   this   value   to  
                      false   will   improve   runtime   performance   of   this   application.    
                      Set   compilation   debug="true"   to   insert   debugging   symbols   (.pdb   information)  
                      into   the   compiled   page.   Because   this   creates   a   larger   file   that   executes  
                      more   slowly,   you   should   set   this   value   to   true   only   when   debugging   and   to  
                      false   at   all   other   times.   For   more   information,   refer   to   the   documentation   about  
                      debugging   ASP   .NET   files.  
          -->  
          <compilation    
                    defaultLanguage="c#"  
                    debug="true"  
          />  
   
          <!--     CUSTOM   ERROR   MESSAGES  
                      Set   customError   mode   values   to   control   the   display   of   user-friendly    
                      error   messages   to   users   instead   of   error   details   (including   a   stack   trace):  
   
                      "On"   Always   display   custom   (friendly)   messages      
                      "Off"   Always   display   detailed   ASP.NET   error   information.  
                      "RemoteOnly"   Display   custom   (friendly)   messages   only   to   users   not   running    
                      on   the   local   Web   server.   This   setting   is   recommended   for   security   purposes,   so    
                      that   you   do   not   display   application   detail   information   to   remote   clients.  
          -->  
          <customErrors    
          mode="Off"    
          />    
   
          <!--     AUTHENTICATION    
                      This   section   sets   the   authentication   policies   of   the   application.   Possible   modes   are   "Windows",   "Forms",    
                      "Passport"   and   "None"  
          -->  
          <authentication   mode="Windows"   />    
   
          <!--     APPLICATION-LEVEL   TRACE   LOGGING  
                      Application-level   tracing   enables   trace   log   output   for   every   page   within   an   application.    
                      Set   trace   enabled="true"   to   enable   application   trace   logging.     If   pageOutput="true",   the  
                      trace   information   will   be   displayed   at   the   bottom   of   each   page.     Otherwise,   you   can   view   the    
                      application   trace   log   by   browsing   the   "trace.axd"   page   from   your   web   application  
                      root.    
          -->  
          <trace  
                  enabled="false"  
                  requestLimit="10"  
                  pageOutput="false"  
                  traceMode="SortByTime"  
  localOnly="true"  
          />  
   
          <!--     SESSION   STATE   SETTINGS  
                      By   default   ASP   .NET   uses   cookies   to   identify   which   requests   belong   to   a   particular   session.    
                      If   cookies   are   not   available,   a   session   can   be   tracked   by   adding   a   session   identifier   to   the   URL.    
                      To   disable   cookies,   set   sessionState   cookieless="true".  
          -->  
          <sessionState    
                          mode="InProc"  
                          stateConnectionString="tcpip=127.0.0.1:42424"  
                          sqlConnectionString="data   source=127.0.0.1;user   id=sa;password="  
                          cookieless="false"    
                          timeout="20"    
          />  
   
          <!--     GLOBALIZATION  
                      This   section   sets   the   globalization   settings   of   the   application.    
          -->  
          <globalization    
                          requestEncoding="utf-8"    
                          responseEncoding="utf-8"    
        />  
         
    </system.web>  
   
  </configuration>  
  Top

8 楼veritable(人在江湖漂)回复于 2005-09-01 00:51:46 得分 0

老兄,多谢你啦Top

9 楼adandelion(水源是CSDN最黑的地方,但这个最黑是CSDN一手制造的!)回复于 2005-09-01 00:53:00 得分 0

<identity   impersonate="True"   />  
  替换为  
  <identity   impersonate="true"   />Top

10 楼veritable(人在江湖漂)回复于 2005-09-01 00:55:31 得分 0

web.config中没有<identity   impersonate="True"   />这一句啊,请问写在哪句话后面?Top

11 楼adandelion(水源是CSDN最黑的地方,但这个最黑是CSDN一手制造的!)回复于 2005-09-01 01:19:29 得分 0

他提示的文件里。Top

12 楼adandelion(水源是CSDN最黑的地方,但这个最黑是CSDN一手制造的!)回复于 2005-09-01 01:22:36 得分 0

睡了。。。。。。。Top

13 楼veritable2(最后的胜利)回复于 2005-09-01 09:32:28 得分 0

兄弟實在對不起昨晚我頂不住了,謝謝你的回復,我想我再研究研究吧,我把分全給你Top

相关问题

  • runtime error 70 Permission Denied 错误
  • Runtime error 105 这是什么错误?
  • 紧急求救:MDAC错误:8007007f runtime error!!!
  • runtime error 通常是什么错误?
  • IE运行时错误:Microsoft Visual c++ Runtime Library . Runtime Error
  • 斑竹,CSDN 网页错误!
  • 网页总出现错误
  • 网页发生错误
  • 网页上有错误?
  • 如何查看runtime error的错误信息!

关键词

  • 修改
  • 文件
  • tag
  • application
  • 信息
  • server
  • 错误
  • 请问
  • error
  • details

得分解答快速导航

  • 帖主:veritable
  • adandelion

相关链接

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

广告也精彩

反馈

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