I\'ve apparently worked myself into a bad coding habit. Here is an example of the code I\'ve been writing:
using(StreamReader sr = new StreamReader(File.Open
Is there any possibility that something else has a lock to somefile.txt?
A simple check from a local (to the file) cmd line
net files
may well give you some clues if anything else has a lock.
Alternatively you can get something like FileMon to take even more details, and check that your app is releasing properly.