This is a migrated thread and some comments may be shown as answers.

Locating source for WPFSimulatedDragDropProvider.cs

3 Answers 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
XXXX
Top achievements
Rank 1
XXXX asked on 26 Apr 2011, 06:29 PM
Hi all,
   I get this really nice error message "Locating source for 'c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragProviders\WPFSimulatedDragDropProvider.cs'"
in my test project for WPF and OpenAccess, when I drag a column header to the "Drag a column header and drop it here to group by that column" but only if the column I drag doesn't contain string data.
I'm using VS2010 and Telerik 2011 Q1 controls, columns in the RadGridview are autogenerated.

Any thoughts ?

Yours
   Bjössi

3 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 29 Apr 2011, 01:01 PM
Hi Bjössi,

 When this message appears could you please press cancel to get the real exception and post the stack trace.

Greetings,
Tsvyatko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
XXXX
Top achievements
Rank 1
answered on 29 Apr 2011, 02:02 PM
Thanks for taking the time to look into this,
This is a simple WPF / OpenAccess test application.  The only change from default values for the RadGridView is that the ItemsSource is set in code like this " radGridView1.ItemsSource = myBookCollection; ".

I'm not sure I'm understanding your request for the stack trace so I'm including more than less.

"
Call stack location:
    Telerik.Windows.Controls.dll!Telerik.Windows.Controls.DragDrop.WPFSimulatedDragDropProvider.OnCoverRectangleMouseLeftButtonUp(object sender = {System.Windows.Controls.Grid},System.EventArgs e = {System.Windows.Input.MouseButtonEventArgs}) Line 389   "

Here is top of the "Call Stack" window in VS
[External Code] 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.PopulateInternalList(System.Linq.IQueryable 
view = 
{System.Linq.EnumerableQuery<Telerik.Windows.Data.AggregateFunctionsGroup>}) 
Line 612 + 0x49 bytes C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.CreateInternalList() 
Line 608 C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.EnsureInternalList() 
Line 563 C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.InternalList.get() 
Line 554 C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.GroupedIndexOf(object 
item = {rWPFBooks.Book}) Line 1497 + 0xb bytes C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.InternalIndexOf(object 
item = {rWPFBooks.Book}) Line 1489 + 0xc bytes C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.TryRestorePreviousCurrency() 
Line 845 + 0xe bytes C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.InitializeCurrencyOnRefresh() 
Line 841 C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshOverride() 
Line 822 C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshInternal() 
Line 770 C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer() 
Line 765 C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ProcessSynchronousCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs 
args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 
1042 + 0x8 bytes C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs 
args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 
985 C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.OnRefresh() 
Line 295 C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.Refresh() 
Line 289 C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.EndDefer() 
Line 63 C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.DeferHelper.Dispose() 
Line 96 C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.EndDefer() 
Line 209 C# 
<BR>Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.DeferHelper.Dispose() 
Line 232 C# 
<BR>Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.PerformGrouping(Telerik.Windows.Data.IGroupDescriptor 
descriptor = {Telerik.Windows.Controls.GridView.ColumnGroupDescriptor}, int? 
insertionIndex = 0, Telerik.Windows.Controls.GroupingEventAction action = Place) 
Line 182 + 0x4c bytes C# 
<BR>Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.RequestGrouping.AnonymousMethod__35() 
Line 137 + 0x36 bytes C# 
<BR>Telerik.Windows.Controls.dll!Telerik.Windows.Controls.CursorManager.PerformTimeConsumingOperation(System.Windows.FrameworkElement 
frameworkElement = {Telerik.Windows.Controls.RadGridView}, System.Action action 
= {Method = {System.Reflection.RuntimeMethodInfo}}) Line 16 + 0xb bytes C# <BR>

And here are the error details
System.Security.VerificationException was unhandled<BR>  Message=Operation 
could destabilize the runtime.<BR>  Source=Anonymously Hosted 
DynamicMethods Assembly<BR>  
StackTrace:<BR>       at lambda_method(Closure , 
IGrouping`2 )<BR>       at 
System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()<BR>       
at Telerik.Windows.Data.QueryableCollectionView.PopulateInternalList(IQueryable 
view) in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 
612<BR>       at 
Telerik.Windows.Data.QueryableCollectionView.CreateInternalList() in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 
606<BR>       at 
Telerik.Windows.Data.QueryableCollectionView.EnsureInternalList() in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 
562<BR>       at 
Telerik.Windows.Data.QueryableCollectionView.get_InternalList() in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 
552<BR>       at 
Telerik.Windows.Data.QueryableCollectionView.GroupedIndexOf(Object item) in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 
1497<BR>       at 
Telerik.Windows.Data.QueryableCollectionView.InternalIndexOf(Object item) in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 
1489<BR>       at 
Telerik.Windows.Data.QueryableCollectionView.TryRestorePreviousCurrency() in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 
845<BR>       at 
Telerik.Windows.Data.QueryableCollectionView.InitializeCurrencyOnRefresh() in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 
839<BR>       at 
Telerik.Windows.Data.QueryableCollectionView.RefreshOverride() in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 
820<BR>       at 
Telerik.Windows.Data.QueryableCollectionView.RefreshInternal() in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 
769<BR>       at 
Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer() in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 
763<BR>       at 
Telerik.Windows.Data.QueryableCollectionView.ProcessSynchronousCollectionChanged(NotifyCollectionChangedEventArgs 
args) in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 
1042<BR>       at 
Telerik.Windows.Data.QueryableCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs 
args) in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 
983<BR>       at 
Telerik.Windows.Data.QueryableCollectionView.OnRefresh() in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 
294<BR>       at 
Telerik.Windows.Data.QueryableCollectionView.Refresh() in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 
288<BR>       at 
Telerik.Windows.Data.QueryableCollectionView.EndDefer() in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.Defer.cs:line 
60<BR>       at 
Telerik.Windows.Data.QueryableCollectionView.DeferHelper.Dispose() in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.Defer.cs:line 
95<BR>       at 
Telerik.Windows.Data.DataItemCollection.EndDefer() in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\DataItemCollection.ICollectionView.cs:line 
208<BR>       at 
Telerik.Windows.Data.DataItemCollection.DeferHelper.Dispose() in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\DataItemCollection.ICollectionView.cs:line 
231<BR>       at 
Telerik.Windows.Controls.GridView.GridViewDataControl.PerformGrouping(IGroupDescriptor 
descriptor, Nullable`1 insertionIndex, GroupingEventAction action) in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.Grouping.cs:line 
182<BR>       at 
Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass36.<RequestGrouping>b__35() 
in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.Grouping.cs:line 
137<BR>       at 
Telerik.Windows.Controls.CursorManager.PerformTimeConsumingOperation(FrameworkElement 
frameworkElement, Action action) in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\CursorManager.cs:line 
16<BR>       at 
Telerik.Windows.Controls.GridView.GridViewDataControl.RequestGrouping(IGroupDescriptor 
descriptor, Nullable`1 insertionIndex, GroupingEventAction action) in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.Grouping.cs:line 
127<BR>       at 
Telerik.Windows.Controls.GridView.DragDropController.OnGroupPanelDropInfo(Object 
sender, DragDropEventArgs e) in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\DragDrop\DragDropController.GroupPanel.cs:line 
97<BR>       at 
Telerik.Windows.Controls.DragDrop.DragDropEventArgs.InvokeEventHandler(Delegate 
genericHandler, Object genericTarget) in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragDropEventArgs.cs:line 
45<BR>       at 
System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object 
target)<BR>       at 
System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, 
RoutedEventArgs routedEventArgs)<BR>       at 
System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs 
args, Boolean reRaised)<BR>       at 
System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs 
args)<BR>       at 
System.Windows.UIElement.RaiseEvent(RoutedEventArgs 
e)<BR>       at 
Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.DragDropProvider_DropInfo(Object 
sender, DragDropEventArgs e) in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\RadDragAndDropManager.cs:line 
319<BR>       at 
Telerik.Windows.Controls.DragDrop.DragDropProviderBase.RaiseDropInfo() in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragProviders\DragDropProviderBase.cs:line 
170<BR>       at 
Telerik.Windows.Controls.DragDrop.SimulatedDragDropProvider.OnDrop() in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragProviders\SimulatedDragDropProvider.cs:line 
342<BR>       at 
Telerik.Windows.Controls.DragDrop.SimulatedDragDropProvider.OnCoverRectangleMouseLeftButtonUpInternal() 
in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragProviders\SimulatedDragDropProvider.cs:line 
241<BR>       at 
Telerik.Windows.Controls.DragDrop.WPFSimulatedDragDropProvider.OnCoverRectangleMouseLeftButtonUp(Object 
sender, EventArgs e) in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragProviders\WPFSimulatedDragDropProvider.cs:line 
388<BR>       at 
System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate 
genericHandler, Object genericTarget)<BR>       at 
System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object 
target)<BR>       at 
System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, 
RoutedEventArgs routedEventArgs)<BR>       at 
System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs 
args, Boolean reRaised)<BR>       at 
System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs 
args, RoutedEvent newEvent)<BR>       at 
System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs 
e)<BR>       at 
System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate 
genericHandler, Object genericTarget)<BR>       at 
System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object 
target)<BR>       at 
System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, 
RoutedEventArgs routedEventArgs)<BR>       at 
System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs 
args, Boolean reRaised)<BR>       at 
System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs 
args)<BR>       at 
System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs 
args)<BR>       at 
System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean 
trusted)<BR>       at 
System.Windows.Input.InputManager.ProcessStagingArea()<BR>       
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs 
input)<BR>       at 
System.Windows.Input.InputProviderSite.ReportInput(InputReport 
inputReport)<BR>       at 
System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode 
mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 
wheel)<BR>       at 
System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, 
WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& 
handled)<BR>       at 
System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, 
IntPtr wParam, IntPtr lParam, Boolean& 
handled)<BR>       at 
MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr 
lParam, Boolean& handled)<BR>       at 
MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object 
o)<BR>       at 
System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, 
Object args, Int32 numArgs)<BR>       at 
MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate 
method, Object args, Int32 numArgs, Delegate 
catchHandler)<BR>       at 
System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, 
TimeSpan timeout, Delegate method, Object args, Int32 
numArgs)<BR>       at 
MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, 
IntPtr lParam)<BR>       at 
MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& 
msg)<BR>       at 
System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame 
frame)<BR>       at 
System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame 
frame)<BR>       at 
System.Windows.Threading.Dispatcher.Run()<BR>       
at System.Windows.Application.RunDispatcher(Object 
ignore)<BR>       at 
System.Windows.Application.RunInternal(Window 
window)<BR>       at 
System.Windows.Application.Run(Window 
window)<BR>       at 
System.Windows.Application.Run()<BR>       at 
rWPFBooks.App.Main() in 
C:\Verkefni\rWPFBooks\rWPFBooks\obj\x86\Debug\App.g.cs:line 
0<BR>       at 
System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] 
args)<BR>       at 
System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, 
String[] args)<BR>       at 
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()<BR>       
at System.Threading.ThreadHelper.ThreadStart_Context(Object 
state)<BR>       at 
System.Threading.ExecutionContext.Run(ExecutionContext executionContext, 
ContextCallback callback, Object state, Boolean 
ignoreSyncCtx)<BR>       at 
System.Threading.ExecutionContext.Run(ExecutionContext executionContext, 
ContextCallback callback, Object state)<BR>       
at System.Threading.ThreadHelper.ThreadStart()<BR>  InnerException: <BR>
0
Tsvyatko
Telerik team
answered on 05 May 2011, 08:20 AM
Hello Bjössi,

Thank you  for posting the stack trace. It helped us found the identify the exception thrown. The exception is thrown when performing grouping (it does not matter if it is done through  dragging or in code behind). We assume that in this scenario there aggregates used. Would it be possible to share us some additional information about the aggregates used, the ItemsSource of the gridview as well as the application (whether it is full trust or not).

All the best,
Tsvyatko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
XXXX
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
XXXX
Top achievements
Rank 1
Share this question
or