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

RadOpenFolderDialog generate a lot of exception

1 Answer 300 Views
FileDialogs
This is a migrated thread and some comments may be shown as answers.
Mathieu
Top achievements
Rank 1
Mathieu asked on 15 Jan 2020, 04:44 PM

Just by using that:

            var openFileDialog = new RadOpenFolderDialog();
            openFileDialog.ShowDialog();

 

I get all those exceptions and it break each time I run with the debugger.  It's probably related to my mapped network drives.

Exception thrown: 'System.ArgumentException' in mscorlib.dll

Exception thrown: 'System.ArgumentException' in mscorlib.dll

Exception thrown: 'System.ArgumentException' in mscorlib.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.IO.FileNotFoundException' in System.dll
Exception thrown: 'System.UnauthorizedAccessException' in mscorlib.dll
Exception thrown: 'System.UnauthorizedAccessException' in mscorlib.dll
Exception thrown: 'System.UnauthorizedAccessException' in mscorlib.dll
Exception thrown: 'System.UnauthorizedAccessException' in mscorlib.dll
Exception thrown: 'System.UnauthorizedAccessException' in mscorlib.dll

 

The callstack for the first exception:

>mscorlib.dll!System.IO.Path.LegacyNormalizePath(string path, bool fullCheck, int maxPathLength, bool expandShortPaths)Unknown
 mscorlib.dll!System.IO.Path.GetFullPathInternal(string path)Unknown
 mscorlib.dll!System.IO.Directory.InternalExistsHelper(string path, bool checkHost)Unknown
 Telerik.Windows.Controls.FileDialogs.dll!Telerik.Windows.Controls.FileDialogs.DirectoryBaseWrapper.RefreshCanExpand()Unknown
 Telerik.Windows.Controls.FileDialogs.dll!Telerik.Windows.Controls.FileDialogs.DirectoryBaseWrapper.CanExpand.get()Unknown

 

In RefreshCanExpand not all the exception of EnumerateDirectories seems to be catch.

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 20 Jan 2020, 10:17 AM

Hello Mathieu,

Thank you for the shared stack trace.

Those exceptions are thrown and caught with a try-catch structure, in the code of the dialogs, when they try to get an inaccessible directory. They will only be printed in the Output pane of Visual Studio and you can safely ignore them. The application will run properly.

If Visual Studio throws the exception on your side you can disable this by changing the exception settings via the Exception Settings pane. Do give this approach a try and let me know how it goes.

Regards,
Vladimir Stoyanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
FileDialogs
Asked by
Mathieu
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or