Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 8215 [details]
MSDN sample reproducing the issue
mcs compiler couldn't compile the perfectly valid sample from MSDN:
And if I try to run the assembly compiled by .Net compiler mono runtime refuses to JIT it:
Missing method System.AppDomain::add_FirstChanceException(EventHandler`1<FirstChanceExceptionEventArgs>) in assembly /Library/Frameworks/Mono.framework/Versions/3.10.0/lib/mono/4.5/mscorlib.dll, referenced in assembly /Users/user/repo/AppDomainException/bin/Debug/AppDomainException.exe
System.MissingMethodException: Method not found: 'System.AppDomain.add_FirstChanceException'.
[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method not found: 'System.AppDomain.add_FirstChanceException'.
Mono JIT compiler version 3.10.0 ((detached/ac51002 Wed Sep 17 18:34:00 EDT 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
Mono C# compiler version 22.214.171.124
The same issue applies to linux installations.
Included in mono master and mono 4.0