title: Azure MobileServiceInvalidOperation Exception has been thrown
body: <p>I am working with the <code>xamarin.forms</code> app generated when you download the sample for working with Azure Mobile Services. I have made some modifications. Firstly, I have changed Todo, to entry.cs:</p>
  
  <pre><code>public class entry
  {
      string id;
  
      [JsonProperty("ID")]
      public string ID { get; set; }
  
      [JsonProperty("Time")]
      public int Time { get; set; }
  
      [JsonProperty("Percentage")]
      public int Percentage { get; set; }
  
      //I have omitted Device, Replacement, Use_profile, Longitude, Latitude, Battery
  }
  </code></pre>
  
  <p>I try to add a new line to the table in my SQL database, by calling the following code from my page in cs:</p>
  
  <pre><code>var data = new entry{ Longitude = await GetLongitude(), Latitude = await GetLatitude(), Percentage = bpm }; // initialise new data entry 
  await AddItem (data);  
  </code></pre>
  
  <p>When this is called, the app crashes.
  Here is a <a href="https://gist.github.com/georgeedwards/e224d992ebe52b0420cb" rel="nofollow">gist</a> of the log when the exception is thrown. It gives a <code>Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOpperationException has been thrown</code></p>
  
  <p>Explanation:</p>
  
  <p><code>The resource you are looking for has been removed, had it's name changed, or is temporarily unavailable</code></p>
  
  <p>This is thrown on the <code>UIApplication.Main (args, null, "AppDelegate");</code> line in main.cs under the ios project.</p>
  
  <p>Any thoughts on why this is happening would be much appreciated.</p>
  
  <h1>UPDATE:</h1>
  
  <p>Just to add a little more info, I have a web service setup at <code>http://project.azurewebsites.net</code>  this is the address referenced in the constants section of the mobile application I am building in xamarin. However, the SQL database is at <code>http://project-db.database.windows.net</code> how do I get around this? Can I create a database on the original domain, or change the reference in the app?</p>