Error HRESULT E_FAIL has been returned from a call to a COM component

后端 未结 25 1207
情书的邮戳
情书的邮戳 2020-12-24 05:01

In Silverlight 4 app; what does this error mean?:

\"Error HRESULT E_FAIL has been returned from a call to a COM component.\"

It

25条回答
  •  执念已碎
    2020-12-24 05:44

    I received this error recently in VS 2013 for a Silverlight 5 project. None of the above worked for me. Oddly enough, it was a threading problem (normally I am used to an exception that explains this if I am trying to create UIElements on a background thread by mistake).

    Wrapping my code that adds UIElements to the MainPage with Dispatcher.BeginInvoke solved the problem:

     Dispatcher.BeginInvoke(() =>
     {
          // your code
     });
    

提交回复
热议问题