A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

{"You don't have appropriate permission to perform this operation.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 21st 07, 11:01 PM posted to microsoft.public.outlook.program_forms
Sujit
external usenet poster
 
Posts: 2
Default {"You don't have appropriate permission to perform this operation.

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.olMS G );// THIS IS THE CULPRIT
}
}


Could you please suggest if I am missing anything obvious.
--
SKP
Ads
  #2  
Old October 22nd 07, 12:30 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default {"You don't have appropriate permission to perform this operation.

Have you checked to make sure that this.folderBrowserDialog1.SelectedPath returns a valid and complete file name, not just the path? Can you save the same messagemanually?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Sujit" wrote in message ...
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.olMS G );// THIS IS THE CULPRIT
}
}


Could you please suggest if I am missing anything obvious.
--
SKP

  #3  
Old October 22nd 07, 11:49 AM posted to microsoft.public.outlook.program_forms
Sujit
external usenet poster
 
Posts: 2
Default {"You don't have appropriate permission to perform this operat

Excellent! sorted. Thank you for your time and help.
--
SKP


"Sue Mosher [MVP-Outlook]" wrote:

Have you checked to make sure that this.folderBrowserDialog1.SelectedPath returns a valid and complete file name, not just the path? Can you save the same messagemanually?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Sujit" wrote in message ...
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.olMS G );// THIS IS THE CULPRIT
}
}


Could you please suggest if I am missing anything obvious.
--
SKP


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
You don't have appropriate permission to perform this operation MC Outlook - Installation 9 July 4th 06 04:59 PM
you do not have sufficient permission to perform this operation joel Outlook - Calandaring 0 June 21st 06 07:53 PM
You do not have sufficient permission to perform this operation joel Outlook - General Queries 0 June 21st 06 07:20 PM
You don't have appropiate permission to perform this operation George Outlook - General Queries 0 February 17th 06 09:16 AM
You don't have appropriate permission to perform this operation jamepc Outlook - Installation 3 January 15th 06 06:18 PM


All times are GMT +1. The time now is 06:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.