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

Last Reply one year ago By dharmendr

Posted one year 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 one year ago Modified on one year 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.