The current thread has not entered the lock in read mode

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
4/16/2011 12:32:14 AM
Gravatar
Total Posts 7

The current thread has not entered the lock in read mode

Hi,

 

I install mojoportal in Fedora 14 with Apache 2.17, Laste version of mojoportal download page.

Somebody did this to solve the problem:

http://go-mono.com/forums/#nabble-td3327729

 

Server Error in '/' Application
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 Brettle.Web.NeatUpload.Internal.Module.Config.get_CanGetWorkerRequest () [0x00000] in <filename unknown>:0
  at Brettle.Web.NeatUpload.Internal.Module.Config.get_UseHttpModule () [0x00000] in <filename unknown>:0
  at Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest (System.Object sender, System.EventArgs e) [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:24:20 UTC 2011); ASP.NET Version: 2.0.50727.1433

4/16/2011 6:10:35 AM
Gravatar
Total Posts 18439

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

Hi,

Looks like a Mono bug to me, though it could be fixed with a workaround to the bug in Mono, I think it is still a bug in Mono. Application.Lock should work the same on Mono as on .NET on Windows.

Another workaround is simply to disable NeatUpload by commenting out all references to it in Web.config. We do this for Medium Trust hosting because NeatUpload does not work in medium trust.

Best,

Joe

4/16/2011 7:57:44 AM
Gravatar
Total Posts 7

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

Hi Joe,

 

Thank you for the quick answer. I try comment all references from default web.config of Mojoportal for mono build and not work. After read your answer i got web.mediumturst.config and replace my web.config, but this not work too. There is another place that i forgot of disable NeatUpload?

 

thanks again.

4/16/2011 8:09:32 AM
Gravatar
Total Posts 18439

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

Hi Adriano,

Sorry, I thought that would solve it, if it does not I have no solution.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.