when selecting a file an exception will be thrown if the app was started by command line.
the exception is thrown by FilePreview.Previewers, specifically when attempting to access the VLC DLL.
System.TypeInitializationException: The type initializer for 'FilePreview.Previewers' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Implementation.Exceptions.LibVlcNotFoundException: Failed to load VLC modules. Make sure libvlc.dll, libvlccore.dll and plugins directory located in the executable path. ---> System.DllNotFoundException: Unable to load DLL 'libvlc': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at LibVlcWrapper.LibVlcMethods.libvlc_new(Int32 argc, String[] argv)
at Implementation.MediaPlayerFactory.Initialize(String[] args, Boolean findLibvlc, Boolean useCustomStringMarshaller)
--- End of inner exception stack trace ---
at Implementation.MediaPlayerFactory.Initialize(String[] args, Boolean findLibvlc, Boolean useCustomStringMarshaller)
at Implementation.MediaPlayerFactory..ctor(Boolean findLibvlc, Boolean useCustomStringMarshaller)
at FilePreview.MediaFiles.MediaPlayerControl..ctor() in D:\C\Users\DevOps\source\repos\FileList\FilePreview\MediaFiles\MediaPlayerControl.cs:line 22
at FilePreview.MediaFiles.MediaPreview..ctor() in D:\C\Users\DevOps\source\repos\FileList\FilePreview\MediaFiles\MediaPreview.cs:line 12
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at FilePreview.Previewers.<>c.b__11_2(Type p) in D:\C\Users\DevOps\source\repos\FileList\FilePreview\Previewers.cs:line 92
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at FilePreview.Previewers.GetFilePreviews(IList`1& previews) in D:\C\Users\DevOps\source\repos\FileList\FilePreview\Previewers.cs:line 90
at FilePreview.Previewers..cctor() in D:\C\Users\DevOps\source\repos\FileList\FilePreview\Previewers.cs:line 30
--- End of inner exception stack trace ---
at FilePreview.Previewers..ctor()
at FileList.Views.MainForm.FileListControl1_OnFileDataSelected(Object sender, FileDataSelectedEventArgs e) in D:\C\Users\DevOps\source\repos\FileList\Views\MainForm.cs:line 171
at FileList.Models.FileListControl.TreeView1_AfterSelect(Object sender, TreeViewEventArgs e) in D:\C\Users\DevOps\source\repos\FileList\Models\FileListControl.cs:line 421
at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)
at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
at System.Windows.Forms.TreeView.WmNotify(Message& m)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
when selecting a file an exception will be thrown if the app was started by command line.
the exception is thrown by
FilePreview.Previewers
, specifically when attempting to access the VLC DLL.