{"id":7769,"date":"2015-10-23T20:23:26","date_gmt":"2015-10-23T20:23:26","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/10\/23\/error-hresult-e_fail-has-been-returned-from-a-call-to-a-com-component-open-source-projects-componentjs-component\/"},"modified":"2015-10-23T20:23:26","modified_gmt":"2015-10-23T20:23:26","slug":"error-hresult-e_fail-has-been-returned-from-a-call-to-a-com-component-open-source-projects-componentjs-component","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/10\/23\/error-hresult-e_fail-has-been-returned-from-a-call-to-a-com-component-open-source-projects-componentjs-component\/","title":{"rendered":"Error HRESULT E_FAIL has been returned from a call to a COM component-open source projects componentjs\/component"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a9079b4672ff5352679ad7b2960040f5?s=128&amp;d=identicon&amp;r=PG\" \/> <strong>rob<\/strong><\/p>\n<p>For me, I narrowed it down to a SplitButton control that I downloaded off CodePlex ages ago. I had upgraded the solution from Silverlight 4 to Silverlight 5 and got slammed with this error. I was able to narrow it down by commenting out the XAML to all controls then uncommented it back in one by one until the error appreared again:<\/p>\n<pre>\nSystem.Reflection.TargetInvocationException was unhandled by user code\n  Message=Exception has been thrown by the target of an invocation.\n  StackTrace:\n       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\n       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)\n       at System.Delegate.DynamicInvokeImpl(Object[] args)\n       at System.Delegate.DynamicInvoke(Object[] args)\n       at Homexaml_3.BindingOperation(Object BindingState, Int32 , Action )\n  InnerException: \n       Message=Error HRESULT E_FAIL has been returned from a call to a COM component.\n       StackTrace:\n            at MS.Internal.XcpImports.CheckHResult(UInt32 hr)\n            at MS.Internal.XcpImports.UIElement_Measure(UIElement element, Size availableSize)\n            at System.Windows.UIElement.Measure(Size availableSize)\n<\/pre>\n<p>What fixed it was manually removing the outdated references System.Windows.Control and System.Windows.Controls.Toolkit then re-added them from the Silverlight 5 SDK folder.<\/p>\n<p>Hope it helps someone (and helps me!) if it happens again a few months down the road.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>rob For me, I narrowed it down to a SplitButton control that I downloaded off CodePlex ages ago. I had upgraded the solution from Silverlight 4 to Silverlight 5 and got slammed with this error. I was able to narrow it down by commenting out the XAML to all controls then uncommented it back in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7769","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7769"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7769\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}