I am useing the default server (.net) and default (uwp) app from azure to test the mobile app system.
After publish the server and connect via app to the server i am getting the message "The request could not be completed. (Bad Request)". I am not modified anything. Thats the default project downloaded from azure portal.
The response is:
{StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Server: Microsoft-IIS/10.0
Date: Sun, 15 May 2016 18:22:48 GMT
X-Powered-By: ASP.NET
x-zumo-server-version: net-1.1.157.1
Content-Length: 228
Content-Type: application/json; charset=utf-8
}}
Client to do item:
public class TodoItem
{
public string Id { get; set; }
[JsonProperty(PropertyName = "text")]
public string Text { get; set; }
[JsonProperty(PropertyName = "complete")]
public bool Complete { get; set; }
}
Client logic:
private async void ButtonSave_Click(object sender, RoutedEventArgs e)
{
var todoItem = new TodoItem { Text = TextInput.Text };
TextInput.Text = "";
await InsertTodoItem(todoItem);
}
private async Task InsertTodoItem(TodoItem todoItem)
{
// This code inserts a new TodoItem into the database. When the operation completes
// and Mobile Apps has assigned an Id, the item is added to the CollectionView
await todoTable.InsertAsync(todoItem);
items.Add(todoItem);
//await App.MobileService.SyncContext.PushAsync(); // offline sync
}
What can i do to run the connection/system?
Thanks