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've had very good success using the tools from SysInternals to track which applications are accessing files and causing this kind of issue.
Process Monitor is the tool you want - set it up to filter the output to just files in the folder you're interested in, and you'll be able to see every access to the file.
Saves having to guess what the problem is.