“/”应用程序中的服务器错误。

无法在发送 HTTP 标头之后进行重定向。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Web.HttpException: 无法在发送 HTTP 标头之后进行重定向。

源错误:


行 170:
行 171:        if(vtype =="8866")
行 172:            ___context.Response.Redirect("http://product.m.dangdang.com/product.php?pid="+v);
行 173:        if (vtype == "8869")
行 174:            ___context.Response.Redirect("http://item.m.jd.com/product/"+v+".html");

源文件: d:\m.bookdao.com\PageVisit.ashx    行: 172

堆栈跟踪:


[HttpException (0x80004005): 无法在发送 HTTP 标头之后进行重定向。]
   System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) +11739236
   PageVisit.buybook() in d:\m.bookdao.com\PageVisit.ashx:172

[TargetInvocationException: 调用的目标发生了异常。]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +269
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +146
   System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +34
   PageVisit.ProcessRequest(HttpContext context) in d:\m.bookdao.com\PageVisit.ashx:37
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4330.0