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
Developer Community or GitHub 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.
The following line of code
NetworkChange.NetworkAddressChanged += new NetworkAddressChangedEventHandler(NetworkChange_NetworkAddressChanged);
Always throws an exception. The same is true on Mono for Android. It worked (or at least didn't throw an exception) before I updated to 4.8.0
This is the exception:
System.TypeInitializationException: An exception was thrown by the type initializer for System.Net.NetworkInformation.NetworkChange ---> System.Exception: mono_sc_reachability_enabled
at at (wrapper managed-to-native) System.Net.NetworkInformation.MacNetworkChange:mono_sc_reachability_enabled ()
at System.Net.NetworkInformation.MacNetworkChange.get_IsEnabled () [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Net.NetworkInformation/NetworkChange.cs:66
at System.Net.NetworkInformation.NetworkChange..cctor () [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Net.NetworkInformation/NetworkChange.cs:46
--- End of inner exception stack trace ---
at crashlyticstest.AppDelegate.FinishedLaunching (MonoTouch.UIKit.UIApplication app, MonoTouch.Foundation.NSDictionary options) [0x00045] in /Users/rolf/Projects/instruments/AppDelegate.cs:73
at at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string,intptr,intptr)
at MonoTouch.UIKit.UIApplication.Main (System.String args, System.String principalClassName, System.String delegateClassName) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
at instruments.Application.Main (System.String args) [0x00001] in /Users/rolf/Projects/instruments/Main.cs:22
It looks like mono_sc_reachability_enabled wasn't found.
Aaron, can you have a look?
We have the same issue. It used to work before updating to the latest stable. Is there any update on this one?
Hmm, I'm not seeing this on Mono 3.2.0. The following program on OS X always prints "Changed" one time and exits:
static class Test
static void Main ()
NetworkChange.NetworkAddressChanged += (sender, e) => Console.WriteLine ("Changed");
Is this only on Android? mono_sc_reachability_enabled might be getting stripped out of native code?
Aaron, this is on iOS, not OSX.
Oh, missed the product on the bug. I just saw the "same is true for Mono for Android". I suspect the symbol is just getting stripped, but I'll look into it.
same problem here.
Any word on this bug? This is preventing us from doing the iOS 7 release of our product.
I've fixed this in Mono master. I'm not sure what release it will make it into however.