Azure Mobile app - issue with QuickStart

I downloaded the Xamarin.Forms QuickStart Projects (server and client) from the azure mobile app and then published the server project, so good, but I can’t access the table controllers unless I add the query string as described.

http://myservice.azurewebsites.net/tables/todoitem?ZUMO-API-VERSION=2.0.0

or if I add ms_skipversioncheck to true in the portal.

Perhaps something is due to a mismatch in the server or client versions.

Even if I upgrade all nuget packages, the same thing, just get BadRequest (400)

But with this server described above, when I run a client project (Android simulator in visual studio), it works fine in non-synchronized mode.

As soon as I download nuget sqlite localstore and uncomment the line:

// # define OFFLINE_SYNC_ENABLED

and enter the following line: wait RefreshItems (true, syncItems: true);

to enable offline, I only get BadRequest (400), again

I do not know what I should check for version compatibility.

I did not include stack trace or logs because BadRequest is the only thing I got.

Let me know if you need more information.

thanks

Edit: I am checking this link, but I cannot solve my problem.

https://github.com/Azure/azure-content/blob/master/articles/app-service-mobile/app-service-mobile-client-and-server-versioning.md

Its drive me crazy

+4
source share
2 answers

400 . Fiddler (http://www.telerik.com/fiddler) -.

:

GET http://azielnettest.azurewebsites.net/tables/todoitem

HTTP/1.1 400 { "message": " API, ZUMO-API-VERSION 2.0.0. . http://go.microsoft.com/fwlink/?LinkId=690568#2.0.0" }

http://azielnettest.azurewebsites.net/tables/todoitem?zumo-api-version=2.0.0

200 {....}

1 .

2 -

a) Package.config , . - ...

<package id="Microsoft.Azure.Mobile.Server" version="1.0.119.0" targetFramework="net45" />

b) Package.config Xamarin Forms.

<package id="Microsoft.Azure.Mobile.Client" version="2.0.1" targetFramework="win81" />

Microsoft.Azure.Mobile.Client 2.0.0, Azure Mobile App, zumo-api- .

, .

+3

TodoItemManager.cs.

// : NuGet WindowsAzure.MobileServices.SQLiteStore // OFFLINE_SYNC_ENABLED // Xamarin.iOS AppDelegate.cs SQLitePCL.CurrentPlatform.Init() // .: http://go.microsoft.com/fwlink/?LinkId=620342

nuget - Microsoft.Azure.Mobile.Client.SQLiteStore, .

0

Source: https://habr.com/ru/post/1628348/


All Articles