I have this issue. I have a SocketIO server and a Windows store app that sends data to the server, but when I receive something from the server and I try to update the UI, I got this error: If I not update the UI, and send back a message, it works, the problem appears when I touch the UI elements.
An exception of type 'System.Exception' occurred in LiftMeApp Prototype.exe but was not handled in user code
Additional information: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD))
Here is my code:
socket.On("hi", (data) =>
{
this.LayoutRoot.Children.Add(new TextBlock()
{
Text = "a button"
});
});
I would appreciate any hint or help you may give! Thanks. (Hope someone else had this issue fixed)