I have an ASP.NET program where i am downloading a file from web using DownloadFile method of webClient Class and the do some modifications on it. then i am Saving it to ano
try the following, set your filestream to Asynchronus mode (3rd parameter)
FileStream myStream = File.Create(fileName, results.Length,FileOptions.Asynchronous);
//make sure you close the file
myStream.Write(results, 0, results.Length);
myStream.Flush();
myStream.Close();
myStream.Dispose();
if this fails reset the attributed of the file b4 you access it
File.SetAttributes(Server.MapPath(sendFilepath), FileAttributes.Normal);