try to modify your web.config<customErrors mode="Off" />

解决方案 »

  1.   

    安装 Visual Studio 会自动安装 Visual Studio 调试器以作为脚本的默认调试程序。这意味着在像 Internet Explorer 这样的应用程序中 Visual Studio 调试器会替换 Windows 脚本调试程序。如果希望在安装了 Visual Studio 之后运行 Windows 脚本调试程序,请从“开始”菜单中选择该调试程序。
      

  2.   

    to saucer(思归/MVP) :我的页面处理错我是
       在某个页面的catch中,将ex.message放到session中去,然后server.transfer("errorpage")
    在errorpage.aspx.cs的pageload事件中,将ex.message取出来,然后放到页面的控件中。
    我试了Off,on,remoteonly都不行。谢谢!
      

  3.   

    >>>但是一台机器的错误信息只有几行,一台机器的错误信息有几十行,且将tracestack都打印出来了是同一个错误么?这2个机器都是服务器么?什么区别?比较一下两个机器的.NET的
    版本?还有,比较一下web.config与machine.config,看有没有设置什么trace或debug=true的
      

  4.   

    saucer(思归/MVP) 老大帮忙看看啊!(希望回答的时候用中文阿)
    http://community.csdn.net/Expert/topic/3178/3178584.xml?temp=.5132105
      

  5.   

    To:saucer(思归/MVP)
      (1)同一个错误。这个错误是我自己定义的错误。一个机器报错是
    前面几句,然后以no data found结束。另一个机器是:...no data found...后边是很多关于报错信息,是个statck trace。
      (2)两个都是服务器,只是一个机器是装了域,一个机器是域成员(并加入到前面那个域,这个应该不是原因吧?),两个framework版本是一样的,装的都是一个盘,没有重装过framework。debug 是设为了true。要不然就不能调试了。
      (3)web.config是完全一样的。machine.config有些不同,关于exception,trace,debug等词相关的节点基本上是相同的。
       非常谢谢你的解答!
      

  6.   

    你是在哪个机器上看你的页面?第三个机器?
    >>>将ex.message放到session中去,然后server.transfer("errorpage")
    把ex.message字符串的长度也写在变量里,然后在你的页面显示Session("Count") = ex.Message.Length;...Response.Write(String.Format("****{0}***", Session("Count")));
      

  7.   

    首先,应用程序完全是一样的。错误消息使我我在数据库存储过程中自己定义的
    raiseerror("no data found",16,1)我把错误体改成别的都是一样的问题。
    对于域服务器那台:不论从那台客户端访问,错误信息都较多。错误信息大致如下:
     System.web.services.protocols.soapexception:An error has occured during processing
    System.reportingservice.diagnnostics.utilities.rsexception:An error has occured during processing
    System.reportingservice.reportingprocessing.reportprocessingexception:An error has occured during processing
    Sysytem.Data.SqlClient.SqlException: can not read the next data row for the data set DataSet1 at 
    System.Data.SqlClient.SqlDataReader Reader():No Data Found! at
    ...
    ...客户端的,有两三台机器,都在自己机器上跑,或者客户端之间自己彼此访问,错误信息都较少。 大致如下:
    An error has occured during processing-->An error has occured during processing-->An error has occured during processing--> can not read the next data row for the data set DataSet1-->No Data Found!我调试了一下,你的那种方法不行。
    对于前者
    Session("Count") = ex.Message.Length;
    长度为4000多。
    对于后者,长度为231。我的代码大致如下  时候  try{
    ..
    }
    catch(Exception ex)
    {
    Session("ErrorMsg") = ex.Message;
    Server.transer("errorpage.aspx");
    } errorpage页面
    label1.text = Session("ErrorMsg").toString();
      

  8.   

    不用session传呢?Response.Redirect("errorpage.aspx?errortext="+ex.Message)
      

  9.   

    to Alexandria(Zekee是我的姓) :catch(Exception ex)
    {
    Session("ErrorMsg") = ex.Message;(这里两者的消息就不一样了。)
    Server.transer("errorpage.aspx");
    }
      

  10.   

    that sounds very weird, can you switch the machine.config on the two machines and try again?
      

  11.   

    非常谢谢思归的帮忙!1:两台出错信息不一样的机器,返回的HResult值是一样的。
    2:我把俩台机器的machine.config互换了一下,还是一样的问题
    3:我另找了一台机器,其操作系统也是win2000 advanced server,问题还是一样的。错误的消息也是较简单的。4:为什么我在存储过程里面报的错只有no data found,但是ex.message有那么多句阿?
    如果是用asp + com ,出错信息应该只有着一句才对啊?