嗨,当我在 asp.net 中保存文件时出现此错误。我已将我的应用程序放在名称中包含空格的文件夹中。
Illegal characters in path.
System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path)
at System.IO.Path.GetFileName(String path)
at MyApp.Localization.LocalizationHelper.GetDefaultFilePath(String filepath) in D:\! sf02_jan09_I\MyApp.Localization\Helper\LocalizationHelper.cs:line 36
at Localization_Language.Save(String filePath, List`1 lstResDef) in d:\! sf02_jan09_I\MyApp\Modules\Language\LanguageManager.ascx.cs:line 810
at Localization_Language.imbUpdate_Click(Object sender, ImageClickEventArgs e) in d:\! sf02_jan09_I\MyApp\Modules\Language\LanguageManager.ascx.cs:line 743
当我从!sf02_jan09 中删除空间时,它可以工作..在这种情况下我如何处理保存文件?