title: SyncContext is not yet initialized error when trying to GET from Azure easy table
body: <p>I creating a UWP app that pulls in data from an easy table using IMobileServiceSyncTable, but when I try and use this to get information from the table to put into a list I get a SyncContext is not yet initialized error. I can add items to the database fine its just receiving things thats giving me trouble.</p>
  
  <p>Heres my code for interacting with the table:</p>
  
  <pre><code>private MobileServiceCollection&lt;DrillItem, DrillItem&gt; drills;
      private IMobileServiceSyncTable&lt;DrillItem&gt; drillTable = App.MobileService.GetSyncTable&lt;DrillItem&gt;();
  
      public CombatDrillsTable()
      {
  
      }
  
      public MobileServiceCollection&lt;DrillItem, DrillItem&gt; GetDrills()
      {
          return this.drills;
      }
  
      public async Task AddDrill(DrillItem drillItem, String n, int s, int t, string sty)
      {
          drillItem.Name = n;
          drillItem.Sets = s;
          drillItem.SetTime = t;
          drillItem.Style = sty;
  
          await App.MobileService.GetTable&lt;DrillItem&gt;().InsertAsync(drillItem);
          drills.Add(drillItem);
      }
  
      public async void GetById(string n)
      {
          IMobileServiceTableQuery&lt;DrillItem&gt; query = drillTable.Where(drillItem =&gt; drillItem.Name == n)
              .Select(drillItem =&gt; drillItem);
          List&lt;DrillItem&gt; items = await query.ToListAsync();
          Console.WriteLine(items);
      }
  
      public async Task GetDrillsAsync(String cat)
      {
          MobileServiceInvalidOperationException exception = null;
          try { 
          drills = await drillTable.Where(drillItem =&gt; drillItem.Style == cat)
                  .ToCollectionAsync();
              Console.WriteLine(drills);
          }
          catch (MobileServiceInvalidOperationException e)
          {
              exception = e;
          }
          if (exception != null)
          {
              await new MessageDialog(exception.Message, "Error loading items").ShowAsync();
          }
          else
          {
              // code here
          }
  
      }
  </code></pre>
  
  <p>heres the code that activates the get:</p>
  
  <pre><code>    String parameters;
      CombatTableView ctv = new CombatTableView();
      private ObservableCollection&lt;DrillItem&gt; _items;
      private ObservableCollection&lt;DrillItem&gt; _temp;
  
      public DisplayDrills()
      {
          this.InitializeComponent();
          _items = new ObservableCollection&lt;DrillItem&gt;();
          AddItemsAsync();
      }
  
      protected override void OnNavigatedTo(NavigationEventArgs e)
      {
          base.OnNavigatedTo(e);
  
          parameters = (String)e.Parameter;
  
          testBox.Text = parameters;
  
  
          RefreshListView.ItemsSource = _items;
      }
  
      private async Task updateDrillsAsync(){
          await ctv.combatDrillsTable.GetDrillsAsync(parameters);
      }
  
      private async void AddItemsAsync()
      {
  
          await updateDrillsAsync();
          _temp = ctv.combatDrillsTable.GetDrills();
  
          foreach (var t in _temp)
          {
              _items.Insert(0, t);
          }
      }
  </code></pre>