am making a project in asp.net (c#) and when a user gets aproved he get a dir witch he can upload files 2. but am getting "Access to the path 'data' is denied.' where data is the name of the dir part of my code: Code: SaveLocation = Server.MapPath(Session["username"].ToString()/* "data"*/) + "\\" + fn; photoUpload.PostedFile.SaveAs(SaveLocation); where fn is the name of the file (only the name, no path) can anybody please help me? p.s am new to uploading in asp.net <LINK href="home.css.v1.19.css" type=text/css rel=stylesheet>
make you the path is valid and you have write permission on the folder? Are you getting getting this exception on Dasp server or locally? Vikram DiscountASP.NET www.DiscountASP.NET