VidCoder icon indicating copy to clipboard operation
VidCoder copied to clipboard

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

Open bflaminio opened this issue 8 months ago • 2 comments

What were you doing when VidCoder crashed?

Error thrown when trying to move a video file up the queue.

Crash details

VidCoder 11.11 VelopackInstaller
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.CSharp, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'Microsoft.CSharp, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at VidCoder.DragDropUtils.DragDropUtilities.<>c__DisplayClass4_0.<RemoveItemsFromItemsControl>b__2(Object innerList)
   at DynamicData.List.Internal.ReaderWriter`1.Write(Action`1 updateAction) in D:\a\DynamicData\DynamicData\src\DynamicData\List\Internal\ReaderWriter.cs:line 74
   at DynamicData.SourceList`1.Edit(Action`1 updateAction) in D:\a\DynamicData\DynamicData\src\DynamicData\List\SourceList.cs:line 128
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
   --- End of inner exception stack trace ---
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at VidCoder.DragDropUtils.DragDropUtilities.RemoveItemsFromItemsControl(ItemsControl itemsControl, Object sourceList, List`1 itemsToRemove)
   at VidCoder.DragDropUtils.DragDropHelper.DropTarget_PreviewDrop(Object sender, DragEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.OleDropTarget.RaiseDragEvent(RoutedEvent dragEvent, Int32 dragDropKeyStates, Int32& effects, DependencyObject target, Point targetPoint)
   at System.Windows.OleDropTarget.MS.Win32.UnsafeNativeMethods.IOleDropTarget.OleDrop(Object data, Int32 dragDropKeyStates, Int64 point, Int32& effects)
   at MS.Win32.UnsafeNativeMethods.DoDragDrop(IDataObject dataObject, IOleDropSource dropSource, Int32 allowedEffects, Int32[] finalEffect)
   at System.Windows.OleServicesContext.OleDoDragDrop(IDataObject dataObject, IOleDropSource dropSource, Int32 allowedEffects, Int32[] finalEffect)
   at System.Windows.DragDrop.OleDoDragDrop(DependencyObject dragSource, DataObject dataObject, DragDropEffects allowedEffects)
   at System.Windows.DragDrop.DoDragDrop(DependencyObject dragSource, Object data, DragDropEffects allowedEffects)
   at VidCoder.DragDropUtils.DragDropHelper.DragSource_PreviewMouseMove(Object sender, MouseEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

bflaminio avatar Jun 13 '25 20:06 bflaminio

Thanks for the report. It looks like something has gone wrong with the .NET framework here, since it can't find a critical DLL. Are you using Remote Desktop?

RandomEngy avatar Jun 14 '25 14:06 RandomEngy

Hello!

I wasn't using remote desktop. This is on an Intel NUC computer running Windows 11 24H2 Build 26100.3915

I tried to replicate it, and it seems like it's working fine. Not sure what made it crash that one time, but maybe it's OK now?

Cheers!

On Sat, Jun 14, 2025 at 7:58 AM David Rickard @.***> wrote:

RandomEngy left a comment (RandomEngy/VidCoder#1384) https://github.com/RandomEngy/VidCoder/issues/1384#issuecomment-2972815094

Thanks for the report. It looks like something has gone wrong with the .NET framework here, since it can't find a critical DLL. Are you using Remote Desktop?

— Reply to this email directly, view it on GitHub https://github.com/RandomEngy/VidCoder/issues/1384#issuecomment-2972815094, or unsubscribe https://github.com/notifications/unsubscribe-auth/APVB575BON3YS6Q3PPBVG4T3DQ2BZAVCNFSM6AAAAAB7JAJYYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNZSHAYTKMBZGQ . You are receiving this because you authored the thread.Message ID: @.***>

bflaminio avatar Jun 15 '25 00:06 bflaminio