ASP.Net FileUpload Error: The process cannot access the file because it is being used by another process

Last Reply 7 months ago By dharmendr

Posted 7 months ago

Sir,

 I have a registration form with 35 Fileupload controls for all different documents. 

If i save around 10 fileupload then it's ok, it's saving file to database as binary, but when I am saving all fileuploade file to database then it's giving me an error as "System.IO.IOException: The process cannot access the file because it is being used by another process."

why?

Posted 7 months ago Modified on 6 months ago

Hi Sumeet,

As per the error you are trying to access a file, that is not accessible because of another process (or even the same process) is doing something with the file.