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 ...