Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Delete file via Async Web Method

0 views
Skip to first unread message

Ollie

unread,
Dec 27, 2004, 6:41:02 PM12/27/04
to
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

Ollie

unread,
Dec 28, 2004, 11:07:03 AM12/28/04
to
Meant to post this to a different newgroup.

My apologies
Ollie

0 new messages