Cant Access File because it is being used by another process

前端 未结 6 2133
我寻月下人不归
我寻月下人不归 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:24

    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..

提交回复
热议问题