首页 新闻 搜索 专区 学院

The remote host closed the connection. The error code is 0x80072746

1
悬赏园豆:50 [已关闭问题]

Thread information:
    Thread ID: 6
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.Web.Hosting.ISAPIWorkerRequestInProcForIIS6.FlushCore(Byte[] status, Byte[] header, Int32 keepConnected, Int32 totalBodySize, Int32 numBodyFragments, IntPtr[] bodyFragments, Int32[] bodyFragmentLengths, Int32 doneWithSession, Int32 finalStatus, Boolean& async)
   at System.Web.Hosting.ISAPIWorkerRequest.FlushCachedResponse(Boolean isFinal)
   at System.Web.Hosting.ISAPIWorkerRequest.FlushResponse(Boolean finalFlush)
   at System.Web.HttpResponse.Flush(Boolean finalFlush)
   at System.Web.HttpResponse.Flush()
   at System.Web.HttpWriter.Write(String s)
   at System.Web.HttpResponse.Write(String s)
   at BasePage.SSO()
   at BasePage.OnInitComplete(EventArgs e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
我就是在SSO里面执行完了跳转了下,就报这个错误,什么问题啊?

问题补充: 我程序是放在页面的基类里的。 protected override void OnInitComplete(EventArgs e) { base.OnInitComplete(e); SSO(); } private void SSO() { HttpContext.Current.Response.Redirect("/c/game.aspx",true); HttpContext.Current.Response.End(); }
小骆的主页 小骆 | 初学一级 | 园豆:150
提问于:2010-08-02 09:44
< >
分享
其他回答(1)
0

贴下你的sso中的代码

Launcher | 园豆:45045 (高人七级) | 2010-08-02 09:59
把 HttpContext.Current.Response.End(); 注释掉.
支持(0) 反对(0) Launcher | 园豆:45045 (高人七级) | 2010-08-02 11:43
0

HttpContext.Current.Response.End();

这句话去掉应该就可以了。

Tom.汤 | 园豆:2258 (老鸟四级) | 2014-04-26 09:38
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册