In my Web.Config file I have add my IP address in file path. when i try to access all files of that folder then it gives an error uri format not supported. but if i give local file path then it works fine.
string pathdata = Utility.GetConfigValue("DevSubmittedStateTaxForms");
string uploadPath = Utility.GetConfigValue("DevUploadFiles");
DirectoryInfo d = new DirectoryInfo(pathdata);
FileInfo[] Files = d.GetFiles("*.pdf");
var status = new List<Object>();
int i = 1;
foreach (FileInfo filename in Files)
{
status.Add(new {ID = i, Name = filename.Name, URL = pathdata + filename.Name + ".pdf" });
i++;
}