We randomly receive the following error. I'm not able to reproduce it consistently so I don't really know where to start troubleshooting this. I know this isn't much information to go on, but I'm hoping for a theory on where I can start looking. Version is 11.2.20112.1010
System.Exception: Error HRESULT E_FAIL has been returned from a call to a COM component.at MS.Internal.XcpImports.CheckHResult(UInt32 hr)at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, DependencyObject doh)at MS.Internal.XcpImports.SetValue(IManagedPeerBase doh, DependencyProperty property, Object obj)at System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value)at System.Windows.DependencyObject.SetEffectiveValue(DependencyProperty property, EffectiveValueEntry& newEntry, Object newValue)at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)at System.Windows.Controls.Control.set_DefaultStyleKey(Object value)at System.Windows.Controls.ContentControl..ctor()at MS.Internal.CoreTypes.GetCoreWrapper(Int32 typeId)at MS.Internal.ManagedPeerTable.EnsureManagedPeer(IntPtr unmanagedPointer, Int32 typeIndex, Type type, Boolean preserveManagedObjectReference)at MS.Internal.XcpImports.ConvertDO(IntPtr doPointer, Int32 typeIndex, Boolean releaseObjectReference)at MS.Internal.XcpImports.ConvertType(CValue outVal, Int32 typeIndex, Boolean releaseObjectReference, Boolean deleteBuffer, IManagedPeerBase fromObject)at MS.Internal.XcpImports.ConvertCValueForManagedWithType(Type propertyType, CValue& outVal, Int32 outDOType, Boolean releaseObjectReference, Boolean deleteBuffer, IManagedPeerBase fromObject)at MS.Internal.XcpImports.GetValue(IManagedPeerBase managedPeer, DependencyProperty property)at System.Windows.DependencyObject.GetValueInternal(DependencyProperty dp)at System.Windows.FrameworkElement.GetValueInternal(DependencyProperty dp)at System.Windows.FrameworkElement.get_Parent()at Infragistics.Controls.Interactions.Utils.GetParents(FrameworkElement element)at Infragistics.Controls.Interactions.XamHtmlViewer.PanelLayoutUpdatedInternal()at Infragistics.Controls.Interactions.XamHtmlViewer.<InvokePanelLayoutUpdated>b__1()
Is this control in a Popup or some other container? Are you working off the main thread?
Looking over the GetParents method, nothing jumps out as something that would cause a COM exception.
I'm getting exactly the same error with 2012.1 (1016). The problem occurs when I close a tabbed window (TabControl) with a XamHtmlViewer on it.
Is there some progress on this issue?
Thanks,
Mike
I've figured out how to reproduce my error reliably now and have it narrowed down to the following. Here's how I was able to reproduce the error. I have the following XAML on one of the pages in my application. If I go to that page and then navigate away and then back to the page 'quickly' then I receive the COM exception. I removed all code-behind that did anything with 'htmlviewer' to be sure that I wasn't doing anything (error still occurs) and I don't get the COM exception if I remove htmlViewer from the XAML. Once again I know this isn't a lot of information, but its what I got.
<ifc:XamDialogWindow x:Name="dlImportWin" Header="Signature" StartupPosition="Manual" Left="0" Top="0" WindowState="Hidden" IsModal="True" MinimizeButtonVisibility="Collapsed" Width="600" IsResizable="False" WindowStateChanged="dlImportWin_WindowStateChanged">
<StackPanel Width="600" Height="300">
<ifc:XamHtmlViewer x:Name="htmlViewer" Width="600" Height="300"></ifc:XamHtmlViewer>
</StackPanel>
</ifc:XamDialogWindow>