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
I dont know if this will solve your problem..
I got the exact same error when writing to a text file and then trying to open it afterwards.
It was solved by flushing the writer and then closing it after writing to the file..