我在本地测试没有问题,但是放到服务器上测试就出现如下问题。
详细错误信息如下:
事件代码: 3005 
事件消息: 发生了未处理的异常。 
事件时间: 2010-7-29 18:31:08 
事件时间(UTC): 2010-7-29 22:31:08 
事件 ID: d7ad81b8efe24a1c8b0a72ac1802403a 
事件序列: 49880 
事件匹配项: 98 
事件详细信息代码: 0 
 
应用程序信息: 
    应用程序域: /LM/W3SVC/778/Root-22-129249093584218750 
    信任级别: Full 
    应用程序虚拟路径: / 
    应用程序路径: ***
    计算机名: ***
 
进程信息: 
    进程 ID: 1996 
    进程名: w3wp.exe 
    帐户名: NT AUTHORITY\NETWORK SERVICE 
 
异常信息: 
    异常类型: HttpUnhandledException 
    异常消息: 引发类型为“System.Web.HttpUnhandledException”的异常。 
 
请求信息: 
    请求 URL: http://abc.com.cn/carbarn/Carbarn301.ashx?zimu=fudixiaochaorenpika 
    请求路径: /carbarn/Carbarn301.ashx 
    用户主机地址: ******
    用户:  
    是否已经过身份验证: False 
    身份验证类型:  
    线程帐户名: NT AUTHORITY\NETWORK SERVICE 
 
线程信息: 
    线程 ID: 5 
    线程帐户名: NT AUTHORITY\NETWORK SERVICE 
    是否正在模拟: False 
    堆栈跟踪:    在 System.Web.UI.Page.HandleError(Exception e)
   在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   在 System.Web.UI.Page.ProcessRequest()
   在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   在 System.Web.UI.Page.ProcessRequest(HttpContext context)
   在 ASP.carbarn_series_aspx.ProcessRequest(HttpContext context)
   在 System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
 
 
自定义事件详细信息: 有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。

解决方案 »

  1.   

     请求 URL: http://abc.com.cn/carbarn/Carbarn301.ashx?zimu=fudixiaochaorenpika  
    这个值是 ?
      

  2.   

    我把后台代码也发上来public class Carbarn301 : IHttpHandler
        {        public void ProcessRequest(HttpContext context)
            {            context.Response.ContentType = "text/plain";
                string zimu = context.Request.QueryString["zimu"];
                if (!string.IsNullOrEmpty(zimu))
                {
                    AutoXL.BLL.BrandB bll = new BLL.BrandB();
                    DataSet ds = bll.GetBrandSeriesZimu();
                    if (ds.Tables.Count != 0)
                    {
                        DataRow[] drs = ds.Tables[0].Select("brandzimu='" + zimu + "'");
                        if (drs.Length != 0)
                        {
                            DataRow dr = drs[0];
                            if (dr["brandzimu"] != null)
                            {
                                string zimudata = dr["brandzimu"].ToString();
                                if (!string.IsNullOrEmpty(zimudata))
                                {
                                    if (dr["bstype"] != null)
                                    {
                                        if (dr["bstype"].ToString().Equals("1"))
                                            context.Server.Transfer("/carbarn/brand.aspx?zimu=" + zimudata);
                                        else
                                            context.Server.Transfer("/carbarn/series.aspx?zimu=" + zimudata);
                                    }
                                }
                            }
                        }
                    }
                }            
            }
                      
            public bool IsReusable
            {
                get
                {
                    return false;
                }
            }
      

  3.   

    出错页面是:http://210.29.192.172/searchAuthenQuanty/AddThird.aspx?id=勘11-05-01&s=True
    异常信息:引发类型为“System.Web.HttpUnhandledException”的异常。
    Source:System.Web
    StackTrace: 在 System.Web.UI.Page.HandleError(Exception e) 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 在 System.Web.UI.Page.ProcessRequest() 在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) 在 System.Web.UI.Page.ProcessRequest(HttpContext context) 在 ASP.searchauthenquanty_addthird_aspx.ProcessRequest(HttpContext context) 位置 c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a2b75af2\3100065a\App_Web_yhoxwflr.3.cs:行号 0 在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)