Wednesday, March 16, 2016

The calling thread cannot access this object because a different thread owns it.


On your do work

  private void worker_DoWork(object sender, DoWorkEventArgs e)  
     {  
       this.Dispatcher.Invoke((Action) (() =>  
       {  
         // Your code  
       }));  
     }  


Ensure that this project has Microsoft.Bcl.Build installed and packages.config is located next to the project file

In my Xamarin form application their was dependency Restclient on Microsoft.Bcl.Build Microsoft.Bcl. i just remove all using nuget and ...