Below is my code, and I'm getting following error.Please help..
private const string FILEPATH = @"\\**.**.**.**\D:\BCPResult\Cust_File.txt";
string filePath = string.Empty;
filePath = Server.MapPath(FILEPATH);
string fileName = Path.GetFileName(filePath);
Response.ContentType = "text/plain";
Response.AppendHeader("Content-Disposition", "attachment;filename=" + fileName);
Response.TransmitFile(filePath);
HttpContext.Current.ApplicationInstance.CompleteRequest();
Response.Flush();
Response.End();
Error :- \++.++.++.++\D:\BCPResult\Cust_File.txt' is not a valid virtual path.