Error in clone logic in drag drop manager

Aug 6, 2009 at 11:07 AM

Hi,

There is some error in clone logic.  I am not able to drag drop in Silverlight 3.

Please help if you have faced this error.  I am pasting the stack trace of my error.

Error: Unhandled Error in Silverlight Application
Code: 4004    
Category: ManagedRuntimeError       
Message: System.ArgumentException: Value does not fall within the expected range.
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.SetValue(INativeCoreTypeWrapper obj, DependencyProperty property, Boolean b)
   at MS.Internal.XcpImports.SetValue(INativeCoreTypeWrapper doh, DependencyProperty property, Object obj)
   at System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isSetByStyle, Boolean isSetByBuiltInStyle, PropertyInvalidationReason reason)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at MyGlobal.Helpers.DependencyPropertyCloner.CloneAllDependencyProperties[T](T source, T clone)
   at MyGlobal.Helpers.DependencyPropertyCloner.Clone[T](T source)
   at MyGlobal.Helpers.DependencyPropertyCloner.CloneAllDependencyProperties[T](T source, T clone)
   at MyGlobal.Helpers.DependencyPropertyCloner.Clone[T](T source)
   at DragDropManager.DragAndDropManager.CloneDragDropItem()
   at DragDropManager.DragAndDropManager.InitDraggingMode(MouseButtonEventArgs e)
   at DragDropManager.DragAndDropManager.StartDragging(MouseButtonEventArgs e)
   at DragDropManager.DragAndDropManager.StartDragging(Object sender, MouseButtonEventArgs e)
   at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)     

Thanks with regards,

Murtaza

Coordinator
Aug 12, 2009 at 7:31 PM

Hello Murtaza,

 

can you tell me which steps you take to get this error?  I'm running this on the SL3 runtime, and it works - but if this is a bug, it's important for me to be able to trace & solve it.

 

Kind regards,

Kev.