[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


How to fix this ?

Looking into source code in


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.


More information about the Mono-aspnet-list mailing list