Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Unable to connect to cosmos CB using Xamarin Forms on Android?

$
0
0

Hi folks,

Still new to Xamarin, so sorry if this is an obvious question.

I have been following the sample todo list code on the microsoft site, to connect my Xamarin Forms app to a Cosmos Mongo DB on Azure.

I've made my own project using this code to connect to my own CosmosDB, but any time I try to query the database, I get the following error:

System.AggregateException: 'Error resolving name servers (Value cannot be null. Parameter name: source) (Could not find file "/etc/resolv.conf")'

I've downloaded and ran the sample code on my device and it runs fine, and connects to the Cosmos DB I have created.

Would anybody be able to point me in the right direction on this?

Thanks


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>