public void GetDashboards() { string sPath = HttpContext.Current.Server.MapPath(string.Format(@"~/App_Data/Dashboards")); string[] lstFiles = Directory.GetFiles(sPath, "*.xml"); //This folder is existing in different project in same solution.Here I got object reference not set to an instance error. foreach (string item in lstFiles) { FileInfo objFileInfo = new FileInfo(item); string sFileName = objFileInfo.Name.Replace(objFileInfo.Extension, ""); UpdateExtract(sFileName); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)