随机会话超时在ASP.NET MVC3 [英] Random Session Timeout in ASP.NET MVC3

查看:114
本文介绍了随机会话超时在ASP.NET MVC3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有获得随机会话超时的应用程序。 (IIS 7.5在Windows 2008 R2,.NET 4.0)

i have an application which gets random session timeouts. (IIS 7.5 on Windows 2008 R2, .NET 4.0)

我试过如下:


  • 检查应用程序日志,如果W3wp.exe进程崩溃了,但没有进入。

  • 在应用程序池快速失败保护禁用

  • 移动到SQL Server的状态,供应商,以确保该loadbalancers粘性会话不
    问题。 (我们使用坎普装卸长)。

  • 确保没有其他应用程序使用相同的应用程序池。

  • 检查,在一个名为组件的线程异常正确处理。 (模拟使用抛出新的除外)和错误处理是正确的。

  • 确保了的validationKey和decryptionKey在webconfig设置在所有4个Web服务器是同一个键。

我现在江郎才尽如何发现这个邪恶的错误。有什么建议么?我不能在调试器中复制我的本地计算机上的问题。

i run now out of ideas how to spot this evil bug. any suggestions? i cannot reproduce the problem on my local machine in the debugger.

有一点是可能重要的是,从第1页迁移到2所在的会话丢失经常发生的页面,有时超过120秒发生,因为这是通过TCP套接字连接的第三方系统。

one point which is maybe important, the move from page 1 to page 2 where the session loss often happens, takes sometimes more than 120 seconds, because of a third party system which is connected via tcp socket.

推荐答案

HI史努比您链接到我的问题,因为它们是类似的,

HI Snoopy you linked to my question as they are similar,

由于我appool被撞毁我想这个解决方案。如果您appool坠毁的这可能会帮助
http://support.microsoft.com/kb/911816

As my appool was crashing I tried this solution. If your appool crash's this may help http://support.microsoft.com/kb/911816

解决方案停止修复黑客一直在我的应用程序池了,但并没有解决问题,

the solution stop fix hack kept my app-pool up but didn't fix the problem,

<configuration>
<runtime>
    <legacyUnhandledExceptionPolicy enabled="true" />
</runtime>

如果您的应用程序池仍保存完好,你可以尝试ELMAH,因为这对我帮助很大
HTTP://$c$c.google.com/p/elmah/

If your app-pool is still intact you might try ELMAH as this helped me a lot http://code.google.com/p/elmah/

您可以使用此code获得ELMAH来处理非托管异常
HTTP://$c$c.google.com/p / ELMAH /问题/细节?ID = 199

you can use this code to get ELMAH to handle unmanaged exceptions http://code.google.com/p/elmah/issues/detail?id=199

我很好奇,如果它是MVC 3.0问题.NET 4.0
因为我一直在使用MVC 2.0没有问题,运行几个非常类似的应用程序,
只有当我搬到MVC 3.0启动

I am curious if it is MVC 3.0 problem with .net 4.0 as i have several very similar apps running using MVC 2.0 with no problems, Only started when I moved to MVC 3.0

这篇关于随机会话超时在ASP.NET MVC3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆