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
 
I ran into the same problem. Were you able to resolve the lock issue?
Thanks,
Reuven
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top