public string ProcessLongRunningAction(IEnumerable<HttpPostedFileBase> files ,string id) { int currentIndex = 0; foreach (HttpPostedFileBase file in files) { currentIndex++; lock(syncRoot) { string path=HttpContext.Current.Server.MapPath("~//Content//images //"+file.FileName);//Excecption is created here........ file.SaveAs(path); } Thread.Sleep(300); } return id; }
Server.MapPath(@"~/Content/images/"+file.FileName);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)