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

Sumeet
 
on May 08, 2019 01:12 AM
936 Views

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?

Download FREE API for Word, Excel and PDF in ASP.Net: Download
dharmendr
 
on May 08, 2019 01:16 AM
on May 15, 2019 05:20 AM

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.