[InvalidCrossThreadAccess] UI thread on Windows Phone 7

When working with asynch operations on WP7  one of the easiest gotchas is accessing UI elements from different threads. The typical error looks sorta like this [InvalidCrossThreadAccess].

It is very easy to solve. The easiest way to solve the problem is using BeginInvoke :

Deployment.Current.Dispatcher.BeginInvoke(() =>
{

      textBox1.Text = responseString;

});