I have written a C# web method that processes a file then deletes it. When
used asynchronously, the method works fine if the file to be processed is the
only file in the directory. If more than one file exists, the web method
throws and IO exception when trying to create a file stream with
FileShare.None. The exception has something to do with the file being used
by another process.
Any ideas on why the web method stops working when more than one file exists
in the directory?
Thanks in adance,
Ollie