Quantcast
Viewing all articles
Browse latest Browse all 1083

NativeHost_NotOnUIThread - Why I'm getting this?

Hi,

I have a Silverlight application which calls a WCF service for updates the UI based on teh result of the service call. Most of the times there are no issues however we have been seeing the below error occasinally. I could not see documentation aboutNativeHost_NotOnUIThread on MSDN to understand the root cause of the issue. Can any one help please?

This app also communicates with the hosting web pages using ScriptObject interface.

Error: Unhandled Error in Silverlight Application

[NativeHost_NotOnUIThread]

Arguments: Debugging resource strings are available. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.0&File=System.Windows.dll&Key=NativeHost_NotOnUIThread at

System.Windows.Hosting.NativeHost.VerifyThread()

 at System.Windows.Browser.ScriptObject.OnEvent(Object sender, EventArgs e)

 at SlightApp.App.ReportErrComplete(String reportXML)

 at SlightApp.Classes.EController.EControllerClientService_ReportErrComleted(Object sender, ReportErrCompletedEventArgs e)

 at SlightApp.svcEController.EControllerWebServiceClient.OnReportErrCompleted(Object state)

 at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)

 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

 at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

 at System.Threading.ThreadPoolWorkQueue.Dispatch()

 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Location:https://www........page.html

Line: 1



Viewing all articles
Browse latest Browse all 1083

Trending Articles