[Mono-list] Method not found: 'System.Threading.Monitor.Enter'

Sebastien Pouliot sebastien.pouliot at gmail.com
Thu Sep 29 16:00:49 EDT 2011


Hello Chris,

Your application was [re]compiled against the 4.0 framework and you're
still trying to execute it using the 2.0 runtime, i.e. mscorlib.dll
from v2 does not have the (new v4) method that your compiled
application is using.

Sebastien

Le 2011-09-29 à 15:37, Chris Derrick <Chris.derrick at storagecraft.com> a écrit :

> I'm running Ubuntu 10.04 and I wrote a service that worked correctly on
> mono-2.0-service version 2.6.7-5ubuntu1~dhx1 (which I installed through
> http://badgerports.org/), but I was prompted to update to
> 2.10.5-1~dhx1~lucid1 and now the service is throwing this error:
>
>
> mono-service2 Sample.exe --debug
> Missing method System.Threading.Monitor::Enter(object,bool&) in assembly
> /usr/lib/mono/2.0/mscorlib.dll, referenced in assembly Sample.exe
>
> Unhandled Exception: System.MissingMethodException: Method not found:
> 'System.Threading.Monitor.Enter'.
>  at System.Threading.Thread.StartUnsafe () [0x00000] in <filename
> unknown>:0
> [ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method not
> found: 'System.Threading.Monitor.Enter'.
>  at System.Threading.Thread.StartUnsafe () [0x00000] in <filename
> unknown>:0
>
>
> The service does not even reach its first line of code anymore.  Any ideas
> why this might be happening?
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/Method-not-found-System-Threading-Monitor-Enter-tp3857390p3857390.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list