question

TomerZ-1923 avatar image
0 Votes"
TomerZ-1923 asked TomerZ-1923 answered

System.Net.Dns.GetHostAddresses hangs after update to 5.0.0.2083 (works on 1931)

The following code worked for me for 2 years:
var addr = System.Net.Dns.GetHostAddresses(url);

After updating Xamarin (and Essentials) to 5.0.0.2083 it's just hanging there until app crashes.

Any ideas/workaround?

dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, TomerZ-1923. I created a basic demo to test the function, it works as expected. What's the version of VisualStudio on your pc? Try to update it to the lastest stable version. Empty the bin and obj folders of both the shared project and platform project, then open the vs to build the project.

0 Votes 0 ·

1 Answer

TomerZ-1923 avatar image
0 Votes"
TomerZ-1923 answered

Hi @JarvanZhang-MSFT, thank you for your attention.
I forgot to mention that i also updated VS (pro) to 16.10.4

The issue was the emulator had no internet access, this is weird because as i said - before those upgrades everything worked fine.
It looks like that one of the updates messed the emulators configuration.

After creating a new emulator everything went back to track.
So i updated Xamarin back to latest and still worked, probably the VS updated messed the emulator configs.

Thanks.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.