MailAttachment locked...how to unlock

  • Thread starter Thread starter Amil
  • Start date Start date
A

Amil

I've ran into the issue that while sending a MailMessage with
MailAttachments, an exception is thrown because of network issues. It
appears that the attachment file is still locked (documentation does state
that during the email xfer, the file is locked). I can't see a way to
unlock the file...MailMessage and MailAttachment objects don't have Dispose
or Close methods.

Any ideas on how to unlock the file??

Amil
 
Please post code to recreate this problem, if possible.

This sounds like a call to customer support is in order. If there's nothing
wrong with your code, you may have found a bug in the CLR.

--- Nick
 
Back
Top