Error:Access to the path 'C:\vhosts\ccub.in\httpdocs\com_addressproof\proof.jpg' is denied.
if (FileUpload1.HasFile) { string filename = Path.Combine(Server.MapPath("~/com_addressproof"), FileUpload1.FileName); serverfile1 = Path.GetFileName(FileUpload1.PostedFile.FileName); path1 ="com_addressproof\\" + serverfile1; if (File.Exists(filename)) { lbl_msg.Visible = true; lbl_msg.Text = "The Communication Address Proof file name already exists. So Please change the file name and then Proceed ! "; return; } FileUpload1.PostedFile.SaveAs(filename); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)