Posted on: 5/1/2013 11:35:47 AM | Views : 205

Hi all,
I'm sending a mail with images before that i'm storing all images in one folder,after sending mail i want to delete that image in the folder here is my code
for (int pathIndex = 0; pathIndex < imagespath.Length; pathIndex++) { if (imagespath[pathIndex] != "") { File.Delete(imagespath[pathIndex]); } }
i'm getting error like (can't access the file path  it is being used by another process )
i'm manually deleting the image also getting error like webdev.webserver20.exe is accessing, after stoping my asp.net server it was deleting ain't using any filestream or streamwriter how can i solve this issue..plz any one help me out
Thank you

...

Go to the complete details ...