Catastropic Failure

Catastropic Failure

Old forum URL: forums.lhotka.net/forums/t/7345.aspx


andy posted on Monday, July 27, 2009

Error when setup databinding with image converter for listbox using datatemplate 

   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.BitmapSource_SetSource(BitmapSource bitmapSource, CValue& byteStream)
   at System.Windows.Media.Imaging.BitmapSource.SetSourceInternal(Stream streamSource)
   at System.Windows.Media.Imaging.BitmapImage.SetSourceInternal(Stream streamSource)
   at System.Windows.Media.Imaging.BitmapSource.SetSource(Stream streamSource)
   at display_db_image.ImageConverter.Convert(Object value, Type targetType, Object parameter, CultureInfo culture)
   at System.Windows.Data.BindingExpression.ConvertToTarget(Object value)
   at System.Windows.Data.BindingExpression.GetValue(DependencyObject d, DependencyProperty dp)
   at System.Windows.DependencyObject.RefreshExpression(DependencyProperty dp)
   at System.Windows.Data.BindingExpression.RefreshBLOCKED EXPRESSION
   at System.Windows.Data.BindingExpression.SendDataToTarget()
   at System.Windows.Data.BindingExpression.SourceAquired()
   at System.Windows.Data.BindingExpression.DataContextChanged(Object o, DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnTreeParentUpdated(DependencyObject newParent, Boolean bIsNewParentAlive)
   at System.Windows.DependencyObject.UpdateTreeParent(IManagedPeer oldParent, IManagedPeer newParent, Boolean bIsNewParentAlive, Boolean keepReferenceToParent)

The same error also reported from this feed

http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=436047

I am using vs2008 and silverlight 3 tookit RTM version.
is it a known problem for sl 3?
Any suggestion?

andy replied on Monday, July 27, 2009

Same problem reported from the following feed as well.

http://silverlight.net/forums/p/94817/258272.aspx#258272.

It seems there is a bug.  I suppose that is the price to pay for live on bleeding edge technology. :)

Copyright (c) Marimer LLC