[Mono-bugs] [Bug 689487] New: Application.Lock() causes SynchronizationLockException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Apr 24 07:09:25 EDT 2011



           Summary: Application.Lock() causes SynchronizationLockException
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: x86-64
        OS/Version: openSUSE 11.4
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: tsilikovis at freemail.ru
         QAContact: mono-bugs at lists.ximian.com
                CC: tsilikovis at freemail.ru
          Found By: DeveloperNet
           Blocker: ---

Description of Problem:
I'm trying to deploy mojoPortal on latest Mono & XSP, but I have
System.Threading.SynchronizationLockException: The current thread has not
entered the lock in read mode. mojoPortal forum already has this question and
they don't know how to solve that Application.Lock() in ASP .Net causes the

Steps to reproduce the problem:
1. Write some Web site that uses Application.Lock() in Session_Start of
2. Deploy it under the latest Mono and XSP with Apache.
3. Try to open the page. It causes the error.

Actual Results:
SynchronizationLockException in Global.asax

Expected Results:
Correct work of Application.Lock() according to documentation.

How often does this happen? 
On every start of a Web application that uses this method in Global.asax

Additional Information:

the message:
The current thread has not entered the lock in read mode

Description: HTTP 500. Error processing request.

Stack Trace:

System.Threading.SynchronizationLockException: The current thread has not
entered the lock in read mode
  at System.Threading.ReaderWriterLockSlim.ExitReadLock () [0x00000] in
<filename unknown>:0 
  at System.Web.HttpApplicationState.Get (System.String name) [0x00000] in
<filename unknown>:0 
  at System.Web.HttpApplicationState.get_Item (System.String name) [0x00000] in
<filename unknown>:0 
  at mojoPortal.Web.Global.IncrementUserCount () [0x00000] in <filename
  at mojoPortal.Web.Global.Session_Start (System.Object sender,
System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Web.SessionState.SessionStateModule.OnSessionStart () [0x00000] in
<filename unknown>:0 
  at System.Web.SessionState.SessionStateModule.OnAcquireRequestState
(System.Object o, System.EventArgs args) [0x00000] in <filename unknown>:0 
  at System.Web.HttpApplication+<RunHooks>c__Iterator5.MoveNext () [0x00000] in
<filename unknown>:0 
  at System.Web.HttpApplication+<Pipeline>c__Iterator6.MoveNext () [0x00000] in
<filename unknown>:0 
  at System.Web.HttpApplication.Tick () [0x00000] in <filename unknown>:0 
Version information: Mono Runtime Version: 2.10.1 (tarball Wed Feb 23 20:28:28
UTC 2011); ASP.NET Version: 2.0.50727.1433

May be it was already reported but I've not found some patch or just some
information about this bug.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list