The method or property that is called may block the UI thread and it is not allowed. Please use background thread to invoke ...

The method or property that is called may block the UI thread and it is not allowed. Please use background thread to invoke the method or property, for example, using System.Threading.ThreadPool.QueueUserWorkItem method to invoke the method or property.