I have a set of nightly reports.
Sometimes I get the exception:
The process cannot access the file because it is being used by another proce
Attachment data = new Attachment(@"c:\filename"); 'send email.... data.Dispose();