A community member has associated this post with a similar question:
Intergrate Azure with xamarin table Error

Only moderators can edit this content.

Xamarin azure connection help

Eduardo Gomez 1 Reputation point
2021-04-02T21:11:08.76+00:00

Hello everyone

I have a little issue with Azure.

I have my server up and running with two tables, I have a Xamarin app, then I configure it in order for me to post, put, get and delete.

I did a get with the postman (just to check if is working the URLXamContact)

But my xamarin app doesn't want to do anything post or get or nothing

I am trying to post here

I also did a c# console application to try it out, and it works. So I do not understand why Xamarin is not working

using AzureTest;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Net.Http;

const string Url = "http://xamxontacts.azurewebsites.net/tables/contact?ZUMO-API-VERSION=2.0.0";

using (HttpClient client = new HttpClient()) {

var request = await client.GetAsync(Url);
if (request.IsSuccessStatusCode) {

    var content = await request.Content.ReadAsStringAsync();
    var res = JsonConvert.DeserializeObject<List<Contacts.Contact>>(content);

    foreach (var item in res) {

        Console.WriteLine(item.name);
    }
}

}

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
Azure SQL Database
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,997 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Navtej Singh Saini 4,216 Reputation points Microsoft Employee
    2021-04-05T14:50:29.327+00:00

    @Eduardo Gomez

    This issue is being checked in the issue. Please follow the issue for resolution.

    We are redirecting this issue to the above mentioned issue.

    Regards
    Navtej S

    0 comments No comments