I'm developing a Windows Phone 8.1 app and when I try to show a list statuses, I get this error: "The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD))"
This is my code:
var listResponse =
(from list in twitterCtx.List
where list.Type == ListType.Statuses &&
list.OwnerScreenName == username &&
list.Count == count && list.Slug == e.Parameter.ToString()
if (listResponse != null && listResponse.FirstOrDefault().Statuses != null)
List.ItemsSource = listresponse;
I get the same error when searching for users. I also tried to insert a dispatcher but I got the same error.