Hello All,
I'm facing this issue specifically under 2003 server. I open a file and
create StreamReader object in VB.NET. I then parse the file contents and if
an error is created, I close the StreamReader object, release the object by
setting it to nothing and then move the file using a System.Io.file.move to
a different folder (Error folder). This seems to work on the 2000 box
without any errors, but under the 2003 server, I get an error when I try to
move the file - the error states that the file is in use by another process,
although I have already closed the StreamReader and released it. This is
pretty consistent, everytime it reads one file, it does not take in the next
file.
I'm running this process as a windows Service and am reporting any errors to
the Application log.
Any ideas would be really appreciated....
Thanks for all the help in advance.
Regards,
Chris