I am using the ConfigurationManager.AppSetting["blah"].ToString()
method to get the path to the folder that contains the files I'm needing. But I'm throwing an UnsupportedFormatException
on the path when it tries to use Directory.GetFiles(path)
.
The returning value has the escape characters included and I'm not sure how to keep it from returning the extra characters. This is what the path looks like after it is returned:
\\\\\\\\C:\\\\folder1\\\\folder2