D
David Turner
I have created an ASP.NET page that uses the
System.IO.DirectoryInfo.GetFiles() method to get a list of files in a
specific directory on our web server. (I simply use this list to build some
javascript code). I'm never opening the files or accessing them in any
other way.
Problem is, that once this ASP.NET page is accessed, we can then no longer
delete or rename any of the files in that directory unless we restart IIS.
If I try and delete them using the System.IO.File.Delete() method I get the
following exception:
System.IOException
The process cannot access the file "..." because it is being used by another
process.
Any Ideas?
System.IO.DirectoryInfo.GetFiles() method to get a list of files in a
specific directory on our web server. (I simply use this list to build some
javascript code). I'm never opening the files or accessing them in any
other way.
Problem is, that once this ASP.NET page is accessed, we can then no longer
delete or rename any of the files in that directory unless we restart IIS.
If I try and delete them using the System.IO.File.Delete() method I get the
following exception:
System.IOException
The process cannot access the file "..." because it is being used by another
process.
Any Ideas?