I get an exception while trying to connect to a SQL Server with an IPv4 address but I get an exception which says
"The AddressFamily InterNetwork is not valid for the System.Net.IPEndPoint end point, use InterNetworkV6 instead. Parameter name: socketAddress"
The issue is caused by commit https://github.com/mono/mono/commit/aeaf37296fe70da1e7f0d0d519c9ca965cc67ca9
*** Bug 44315 has been marked as a duplicate of this bug. ***
Could you attach code/configuration you are using to connect to SQL server
Created attachment 17884 [details]
Project to reproduce the issue
Here's the stack trace of the exception : https://gist.github.com/MathieuMorrissette/caeb40cf515c8ed700f15fafa842ab54
I've included a sample project as an attachment.
I'm using SQL Server 2014 and the only thing I changed in my server configuration is that I enabled TCP/IP in the SQL Configuration manager.
It happens on both the simulator and an iOS device. Both of them are running iOS 10.
Here's my xamarin config :
This appears to be mobile profile issue only
Fixed in master and Mono 4.8.
You could workaround it by disabling local ipv6 network
Notice (2018-05-21): bugzilla.xamarin.com will be
switching to read-only mode on Thursday, 2018-05-25 22:00 UTC.
Please join us on
Visual Studio Developer Community and
GitHub to continue tracking
issues. Bugzilla will remain available for reference in read-only mode.
We will continue to work on open Bugzilla bugs and copy them to the new
locations as needed for follow-up. The See Also field
on each Bugzilla bug will be updated with a link to its new location
After Bugzilla is read-only, if you have new information to add for a
bug that does not yet have a matching issue on Developer Community or
GitHub, you can create a follow-up issue in the new location. Copy and
paste the title and description from this bug, and then add your new
details. You can get a pre-formatted version of the title and
In special cases you might also want the comments:
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.