I have a page to upload file .txt by using PLUpload library (PLUpload). It worked when I test in client computer for all of browser : IE, Chrome, FF... But when I test in Window Server where hosting this website it throw error:
The process cannot access the file 'SystemPath\Test.txt' because it is being used by another process.
The website write by ASP.NET and I think root cause is about the security of Window Server. The error code is Error #-200: HTTP Error.
Here is the code when upload :
using System.IO;
MemoryStream uploadStream = new MemoryStream();
using (FileStream source = File.Open(tempFile, FileMode.Open))
{
source.CopyTo(uploadStream);
}
Question: Why IE throw that error just only Window Server and how to fix that ?