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

后端 未结 25 1215
情书的邮戳
情书的邮戳 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:48

    In my situation:

    I create a

    class MyControl : ContentControl {
    }
    

    By default, the class is not public and XAML cannot load it and throw exception

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

    Just change the scope of class to public and error disappear.

    Hope this help.

    PS. Microsoft should provide more on information than just throw a mystery error message without any stack trace.

提交回复
热议问题