Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1375
Catastrophic failure
posted

i have been using code like this for quite some time:

e.Cell.Style = LayoutRoot.Resources("myCanNotEditCell")

 out of the blue i am running a test app this morning and it throws an exception, now i can not get it to go away, cause i have no idea how it came about

Message:
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Stack
"   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)   
at MS.Internal.XcpImports.SetValue(INativeCoreTypeWrapper obj, DependencyProperty property, DependencyObject doh)   
at System.Windows.DependencyObject.SetValue(DependencyProperty property, DependencyObject doh)   
at System.Windows.FrameworkElement.set_Style(Style value)   
at Infragistics.Silverlight.Controls.CellBase.ApplyStyle()   
at Infragistics.Silverlight.Controls.CellBase.set_Style(Style value)  
at SL3_TestOne.GridTest2.dg_CellControlAttached(Object sender, CellControlAttachedEventArgs e)   
at Infragistics.Silverlight.Controls.XamWebGrid.OnCellControlAttached(Cell cell)   
at Infragistics.Silverlight.Controls.Cell.c()   
at Infragistics.Silverlight.Controls.Primitives.TemplateColumnContentProvider.ResolveDisplayElement(Cell cell, Binding cellBinding)   
at SL3_TestOne.MyColumnContentProvider.ResolveDisplayElement(Cell cell, Binding cellBinding)   
at Infragistics.Silverlight.Controls.CellControl.AttachContent()   
at Infragistics.Silverlight.Controls.Primitives.CellControlBase.OnAttached(CellBase cell)   
at Infragistics.Silverlight.Controls.CellBase.OnElementAttached(CellControlBase element)   
at Infragistics.Silverlight.RecyclingContainer`1.Infragistics.Silverlight.ISupportRecycling.OnElementAttached(FrameworkElement elem)   
at Infragistics.Silverlight.RecyclingManager.AttachElement(ISupportRecycling obj, Panel parent)   
at Infragistics.Silverlight.Controls.Primitives.CellsPanel.RenderCell(Column column, Collection`1 starColumns, Double& maxHeight, Boolean insert, Collection`1 visibleCells, Boolean isInfinite)   
at Infragistics.Silverlight.Controls.Primitives.CellsPanel.RenderCells(Double availableWidth)   
at Infragistics.Silverlight.Controls.Primitives.CellsPanel.MeasureOverride(Size availableSize)   
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)"

i thought this was interesting.

Under:

System.Exceptiom -> Data ->Item

In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user.

any idea what could have caused this or how to fix it