SaveFileDialog exception in my WPF app
问题 One of my customers is experiencing a crash in my WPF application when saving a file. My save file code is: var saveFileDialog = new SaveFileDialog { InitialDirectory = string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"\MyApp"), FileName = "MyFile", OverwritePrompt = true, AddExtension = true }; if (saveFileDialog.ShowDialog() == true) { ... } And here is the exception they are getting: Value does not fall within the expected range. A System.ArgumentException