I have a .NET 4.0 WPF project.
When I open a FileDialog, choose some files and press the OK button, then I see in the output window this error:
A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in WindowsBase.dll
OpenFileDialog fileDialog = new OpenFileDialog();
fileDialog.Multiselect = true;
DialogResult result = fileDialog.ShowDialog();
if (result == DialogResult.OK)
{
Why do I get that Exception before the if-statement?