Author: Karuppu | Posted on: 10/2/2008 5:50:08 PM | Views : 283

Hi there,

I am using aspx,c#.

After sending some files using Send Email Button I would like to move or delete those files to another folder.

I am able to copy those files to another folder.

But when I try to delete or move I got some error like this

The process cannot access the file 'C:\Inetpub\wwwroot\quote.pdf' because it is being used by another process. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.IOException: The process cannot access the file 'C:\Inetpub\wwwroot\ quote.pdf' because it is being used by another process.

Source Error:

Go to the complete details ...