Posted on: 9/11/2013 6:46:32 AM | Views : 650

hello friends
i am using CuteWebUI.AjaxUploader to upload file.
It is working fine on my local machine but punching error on server file access denied
my code is:-
 
public string GetFileDirectory() { string dir = Context.Server.MapPath("~/Attachments/"); return dir; } protected void Uploader1_FileUploaded(object sender, CuteWebUI.UploaderEventArgs args) { try { string newname = args.FileName; //string ext=args.FileName. string flname = args.FileName; string path = Server.MapPath(args.FileName); FileInfo TheFile = new FileInfo(MapPath("~/Attachments/") + args.FileName); if (TheFile.Exists) { File.Delete(MapPath("~/Attachments/") + args.FileN ...

Go to the complete details ...