Hi,
I am trying to write a file to a folder on my local c drive.
However i am getting this error:
"Access to the path 'X:\yyyy' is denied."
I have access as an administrator. I have all the access required on this folder, everything!
Yest it gives me the error..!
if (File.Exists(exportPath))
{
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.ContentType = "application/pdf";
HttpContext.Current.Response.AddHeader("content-disposition", "attachment;filename=\"" + Path.GetFileName(exportPath) + "\"");
HttpContext.Current.Response.AddHeader("content-length", new FileInfo(exportPath).Length.ToString());
HttpContext.Current.Response.TransmitFile(exportPath);
HttpContext.Current.Response.Flush();
HttpContext.Current.Response.Close();
}
sorry G ...
Go to the complete details ...