Hi I m getting this error when I save a file in asp.net. I have put my application inside a folder containing space in the name.
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
When I remove the space from !sf02_jan09, it works..how do i handle saving file in this scenario?