Sample Source Code:
https://drive.google.com/file/d/0BzYXG8uD6JT3ai1SN3lfRE5oNWs/view
Background:
Creating a Xamarin Forms app with Azure Data Sync with Azure app Services as backend. Using Dot Net based Managed backend on azure.
My Issue:
My app works fine in offline mode & I can click on sync to sync all offline data to azure.
If now I need to also incorporate File Syncing so I can use files in my app in offline mode & also sync them to azure, I can use Azure File Sync. I am following the steps given here:
In the attached sample code, If you comment the file sync related code in AzureHelper.cs at line numbers 44, 46 & 74 and uncomment the data sync call at Line number 41 it works as expected.
If you now comment the code on Line Number 41 & uncomment the code for for File Sync at 44, 46, 74 in the same file & run the code, you get a 500 error. Moreover this 500 error is shown in a Box in Visual Studio as an unhandlled exception, where as I have catch block used at all possible erroneous locations. Because of this it has become incredibly difficult to catch the source of this error.
This is what led me to believe that the error is somewhere in File Sync changes, just can't figure out what block?
Can someone please shed some light on this?
Thanks ST