Hi, i created an upload script, it uploads csv files to a folder in iis. After i upload i display the folder items in the page, besaide each csv, i display the column heading in that csv. I have a check box and a delete button to delete the csv (individually) files in the folder. After i upload a csv, i then tried to delete the file i uploaded, am getting this error:
The process cannot access the file 'E:\ because it is being used by another process.
If i change permissions of the csv im trying to delete, to disallow anyone from opening that file, hence I break the (stream connection, if there is one open, which is my question) then i can delete the file trough the web app, after i set the permissions back to normal.
Question: any idea what might be happening? There seems to be a connection to that csv when i upload it, not sure how to break the connection. I upload load it display the csv name and the column heading to the page.
The process cannot access the file 'E:\ because it is being used by another process.
If i change permissions of the csv im trying to delete, to disallow anyone from opening that file, hence I break the (stream connection, if there is one open, which is my question) then i can delete the file trough the web app, after i set the permissions back to normal.
Question: any idea what might be happening? There seems to be a connection to that csv when i upload it, not sure how to break the connection. I upload load it display the csv name and the column heading to the page.