Bug 23432 - Missing property System.AppDomain::FirstChanceException
Summary: Missing property System.AppDomain::FirstChanceException
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: master
Hardware: PC All
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-09-27 03:44 UTC by Mike
Modified: 2015-02-27 10:30 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
MSDN sample reproducing the issue (1.90 KB, application/octet-stream)
2014-09-27 03:44 UTC, Mike
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED FIXED

Description Mike 2014-09-27 03:44:01 UTC
Created attachment 8215 [details]
MSDN sample reproducing the issue

mcs compiler couldn't compile the perfectly valid sample from MSDN:
http://msdn.microsoft.com/en-us/library/system.appdomain.firstchanceexception(v=vs.110).aspx

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

Unhandled Exception:
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
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  x86
	Disabled:      none
	Misc:          softdebug 
	LLVM:          yes(3.4svn-mono-(detached/e656cac)
	GC:            sgen

Mono C# compiler version 3.10.0.0

The same issue applies to linux installations.
Comment 1 Marek Safar 2015-02-27 10:30:14 UTC
Included in mono master and mono 4.0