tmds/Tmds.MDns

System.DllNotFoundException on StartBrowse method

Saratsin opened this issue · 2 comments

I'm trying to use your library in Xamarin.Android project (with Mono.Framework and .Net Standard 1.6)
And I'm stuck on getting this exception, when I calling ServiceBrowser.StartBrowse method. Here are some details:
System.DllNotFoundException
/System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
at (wrapper managed-to-native) System.Net.NetworkInformation.MacNetworkChange:SCNetworkReachabilityCreateWithAddress (intptr,System.Net.NetworkInformation.MacNetworkChange/sockaddr_in&)
at System.Net.NetworkInformation.MacNetworkChange..ctor () [0x0000c] in <9624f2cab6ac4ffc9c31e9469d40591a>:0
at System.Net.NetworkInformation.NetworkChange.MaybeCreate () [0x00009] in <9624f2cab6ac4ffc9c31e9469d40591a>:0

tmds commented

@sarantis you are missing a library used by mono:

https://github.com/mono/mono/blob/0568203e32b2ce7a746b1e73f55610b6488f761c/mcs/class/System/System.Net.NetworkInformation/NetworkChange.cs#L155

Probably you can reproduce this using mono alone and report an issue.

Adding an event handler to NetworkChange.{NetworkAddressChanged/NetworkAvailabilityChanged} should trigger the issue.

tmds commented

Closing due to inactivity