question

AndrewMacLean-7631 avatar image
0 Votes"
AndrewMacLean-7631 asked ttirrell commented

Problem uploading data to Azure SQL using offline-sync Xamarin Forms cross-platform in Visual Studio 2019 and Azure Mobile Service

We are developing a cross-platform app using Xamarin Forms and Visual Studio 2019. We have created an SQL Database on Azure with offline-sync. We are having an issue trying to sync to the online database. When conducting the PushAsync function we get an error that states:

Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceTableOperationError:
"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."

The record inserts no problem in the local DB and returns an "id" but will not write to the online DB. I have attached the error. 63105-capture.png


dotnet-xamarin
capture.png (80 B)
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.

1 Answer

AndrewMacLean-7631 avatar image
0 Votes"
AndrewMacLean-7631 answered ttirrell commented

We were able to fix this by downloading and publishing the .NET Sample Code ZUMOAPPNAME. The documentation on this is not very good. There should be a project type in Visual Studio so that developers can create their own back-end. Or at least separate out the back-end project for .NET in the documentation.

· 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.

@AndrewMacLean-7631 How did you get this to work? I downloaded the sample from https://github.com/Azure/azure-mobile-apps/tree/main/samples/xamarin-forms and it works. But when I create my own custom Azure DB, Server, App, etc I get the error above.

I think it has to do with my Web App. I didn't run their script because it uses zumo for the naming convention. I have a "Your app service is up and running" page, but can't access the db.

Thanks

0 Votes 0 ·