Error while saving attachment

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to save an attachment from Inbox folder to a specified file using
VB.Net and MS Outlook 11.0 Object Library. I am getting an error message
saying you don’t have appropriate permission to perform this operation as
follow:

System.Runtime.InteropServices.COMException (0xD0770005): Cannot save the
attach
ment. You don't have appropriate permission to perform this operation.
at Outlook.Attachment.SaveAsFile(String Path)
at RetrieveMessageFromInbox.Module1.Main() in C:\Documents and
Settings\pbang
a\My Documents\Visual Studio
Projects\RetrieveMessageFromInbox\Module1.vb:line 4

Why is this error coming up and how can I fix this? Thanks
 
Back
Top