S
Sujit
Hi Guys,
I am writting a code in c# using Visual Studio 2005 on windows vista
platform to retrieve the emails messages from my outlook 2007 inbox and I am
getting the error message:
{"You don't have appropriate permission to perform this operation."}
This error message occurs when I am performing the task of saving the
MailItem into a directory where I have full Control to read and write and I
am an administrator on my lcoal vista system. I have also checked the
permissions and made sure that I have full on control on outlook storage
folder i.e; (C:\Users\<user name>\AppData\Local\Microsoft\Outlook.
I am pasting the piece of code and have marked the culprit line in CAPITALS.
void ProcessItem(MailItem obj)
{
if (obj is MailItem)
{
string sub = obj.Subject;//for testing
if (obj != null)
{
obj.SaveAs(this.folderBrowserDialog1.SelectedPath,
Microsoft.Office.Interop.Outlook.OlSaveAsType.olMSG );// THIS IS THE CULPRIT
}
}
Could you please suggest if I am missing anything obvious.
I am writting a code in c# using Visual Studio 2005 on windows vista
platform to retrieve the emails messages from my outlook 2007 inbox and I am
getting the error message:
{"You don't have appropriate permission to perform this operation."}
This error message occurs when I am performing the task of saving the
MailItem into a directory where I have full Control to read and write and I
am an administrator on my lcoal vista system. I have also checked the
permissions and made sure that I have full on control on outlook storage
folder i.e; (C:\Users\<user name>\AppData\Local\Microsoft\Outlook.
I am pasting the piece of code and have marked the culprit line in CAPITALS.
void ProcessItem(MailItem obj)
{
if (obj is MailItem)
{
string sub = obj.Subject;//for testing
if (obj != null)
{
obj.SaveAs(this.folderBrowserDialog1.SelectedPath,
Microsoft.Office.Interop.Outlook.OlSaveAsType.olMSG );// THIS IS THE CULPRIT
}
}
Could you please suggest if I am missing anything obvious.