[Mono-aspnet-list] How to fix Failed to acquire lock exceptions

Andrus kobruleht2 at hot.ee
Sat Oct 5 19:33:46 UTC 2013


Simple shopping cart is created using MVC4 and mod_mono in Debian

Sometimes exception

System.ApplicationException: Failed to acquire lock
  at System.Web.SessionState.SessionInProcHandler.GetItemInternal 
(System.Web.HttpContext context, System.String id, System.Boolean& locked, 
System.TimeSpan& lockAge, System.Object& lockId, 
System.Web.SessionState.SessionStateActions& actions, Boolean exclusive) 
[0x00000] in <filename unknown>:0

occurs.

How to fix this ?

Looking into source code in

https://github.com/mono/mono/blob/a31c107f59298053e4ff17fd09b2fa617b75c1ba/mcs/class/System.Web/System.Web.SessionState_2.0/SessionInProcHandler.cs

it seems like mono was unable to find something from session cache.

Version Information: 3.2.1 (tarball E aug 19 21:33:54 EEST 2013); ASP.NET
Version: 4.0.30319.17020

If same application runs in Windows server this application does not occur.

Andrus 



More information about the Mono-aspnet-list mailing list