`
itsuki
  • 浏览: 10200 次
  • 性别: Icon_minigender_1
  • 来自: 火星
最近访客 更多访客>>
社区版块
存档分类
最新评论

Response.Flush导至Session错误

阅读更多

 

点耐特儿写道
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

会话状态已创建一个会话 ID,但由于响应已被应用程序刷新而无法保存它。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Web.HttpException: 会话状态已创建一个会话 ID,但由于响应已被应用程序刷新而无法保存它。

源错误:

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:


[HttpException (0x80004005): 会话状态已创建一个会话 ID,但由于响应已被应用程序刷新而无法保存它。]
System.Web.SessionState.SessionIDManager.SaveSessionID(HttpContext context, String id, Boolean& redirected, Boolean& cookieAdded) +2172111
System.Web.SessionState.SessionStateModule.CreateSessionId() +55
System.Web.SessionState.SessionStateModule.DelayedGetSessionId() +64
System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +328
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64



--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.42

 经检查是由于创建Session时调用了Response.Flush导至出错

 


响应已被应用程序刷新
 

Session模式 web.config global.asax 表示很委屈...

0
2
分享到:
评论

相关推荐

    通过HttpURLConnection获取SESSIONID

    out.flush(); out.close(); out.write(parameters.getBytes(),0,parameters.getBytes().length); InputStream in = hc.getInputStream(); InputStreamReader reader = new InputStreamReader(in,"gb...

    JSP清除页面缓存常用方法小结

    本文实例总结了JSP清除页面缓存常用方法。分享给大家供大家参考,具体如下: ...response.flushBuffer();%> 在html页里: <meta http-equiv=Content-Type content=text/html; charset=gb2312> <META HTTP

    jsp 验证码 控件

    session.setAttribute("verifyCode", String.valueOf(sRand)); g.dispose(); ServletOutputStream outStream= response.getOutputStream(); JPEGImageEncoder encoder=JPEGCodec.createJPEGEncoder...

    计算机二级Web程序设计模拟卷(二).doc

    如果只希望在多个页面间共享数据,可以使用()作用域 A.request,session B.applicationsession C.request,application D.pageContextrequest 正确答案:A 您的答案: 本题解析: 暂无解析 18.在JSP页面中,保存数

    验证码下载jsp

    session.setAttribute("rand",sRand); // 图象生效 g.dispose(); // 输出图象到页面 java.io.OutputStream os=response.getOutputStream(); ImageIO.write(image, "JPEG", os); os.flush(); os.close(); os=null; ...

    轻量级java web MVC框架

    response.addCookie(new Cookie("JSSESIONID", session.getId())); ServletOutputStream responseOutputStream = response.getOutputStream(); ImageIO.write(bufferImage, "JPEG", responseOutputStream); ...

    servlet2.4doc

    Notification that an attribute has been added to a session. attributeAdded(ServletContextAttributeEvent) - Method in interface javax.servlet.ServletContextAttributeListener Notification that a new ...

    fso浏览54646465465464564

    Session.Timeout=45 'Session有效时间 Const mss="explorer_" 'Session前缀 Const Password="knowsky" '登录密码 Const Copyright=";"">©CopyLeft 2006. Coded By rssn, Hebust. No Rights Reserved</div>" '...

    .jsp和servlet验证码

    // 把验证码存入session request.getSession(true).setAttribute("codes", vcode); for (int i = 0; i ; i++) { g2.setFont(new Font("Times New Roman", Font.HANGING_BASELINE, FontSize)); double rot = ...

    POI导入导出EXCEL文件.(struts 1.x and struts2.x).doc

    Connection connection = session.connection(); String sql = "Select t.name, t.sex, t.age from table t where t.sex = ?"; try { PreparedStatement ps = connection.prepareStatement(sql); ps....

    导出Excel到自定义位置

    HttpResponse resp = System.Web.HttpContext.Current.Response; resp.Charset = "utf-8"; resp.Clear(); resp.AppendHeader("Content-Disposition", "attachment;filename=" + filename + ".xls"); resp....

    ssh(structs,spring,hibernate)框架中的上传下载

    具体的调用是将Web层将response.getOutputStream()传给write(OutputStream os,String fileId)接口,业务层直接将文件数据输出到这个响应流中。具体实现请参见错误!未找到引用源。节下载文件部分。  2、业务层接口...

    事业单位公事审批系统

    if(session.getAttribute("userid")== null || session.getAttribute("userid").equals("")) { response.sendRedirect("index.jsp"); } %> <jsp:include flush="true" page="head.jsp"/> <br /> <br /> ...

    php.ini-development

    session.hash_bits_per_character ; Default Value: 4 ; Development Value: 5 ; Production Value: 5 ; short_open_tag ; Default Value: On ; Development Value: Off ; Production Value: Off ; track_errors ...

    jsp内置对象的用法

    18 void log(Exception exception,String msg) 把指定异常的栈轨迹及错误消息写入Servlet的日志文件 19 void log(String msg,Throwable throwable) 把栈轨迹及给出的Throwable异常的说明信息 写入Servlet的日志...

    超级有影响力霸气的Java面试题大全文档

     Session Bean 还可以再细分为 Stateful Session Bean 与 Stateless Session Bean ,这两种的 Session Bean都可以将系统逻辑放在 method之中执行,不同的是 Stateful Session Bean 可以记录呼叫者的状态,因此通常...

    数位板压力测试

    This specification was developed in response to a perceived need for a standardized programming inter-face to digitizing tablets, three dimensional position sensors, and other pointing devices by a ...

    ASP对象全接触资料集

    | | | ├────────SESSION到底是不是COOKIE的子集.txt | | |ObjectContext 对象 | | | ├───────────────────ObjectContext 对象.txt | | | ├──────────────────...

    java 面试题 总结

    Session Bean 还可以再细分为 Stateful Session Bean 与 Stateless Session Bean ,这两种的 Session Bean都可以将系统逻辑放在 method之中执行,不同的是 Stateful Session Bean 可以记录呼叫者的状态,因此通常来...

Global site tag (gtag.js) - Google Analytics