title: Offline Data Sync in Azure with MongoDB
body: <p>It appears from <a href="https://azure.microsoft.com/en-us/blog/announcing-general-availability-of-app-service-mobile-apps/" rel="nofollow" title="Announcing general availability of App Service Mobile Apps">Announcing general availability of App Service Mobile Apps</a> that Offline Data Sync is possible with a backend that uses MongoDB for data storage in Azure.</p>
  
  <p>I have tried to implement this in various ways with both the old and the new mobile services/app variants.</p>
  
  <p>Lets ignore my epic fail-story with the old (Mobile Service?) way and focus on the new way, with a App Service backend that is implemented in C#. </p>
  
  <p>I set it up with SQL Server since MongoDB is not in the dropdown list. After setting it up in the Azure control panel i download the quick start TodoItems application and it works. </p>
  
  <p>I use the todoitems-client to test the backend.</p>
  
  <p>I enable Offline sync in the client and it works. </p>
  
  <p>Then i try to change the type of the DataObject TodoItem int the backend to DocumentData from EntityData in order to replace SQL-server with MongoDB.</p>
  
  <p>This is where i find out that the Microsoft.Azure.Mobile.Server.Backend.Mongo package is not available like it was when i tried the old version of offline sync. </p>
  
  <p>What i would like to know is:</p>
  
  <p>o Has anyone got this setup to work?
  o If so, how?</p>
  
  <p>Thanks,
  Mattias </p>