Cant Access File because it is being used by another process

前端 未结 6 2150
我寻月下人不归
我寻月下人不归 2020-12-11 09:25

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

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-11 10:19

    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.

提交回复
热议问题