Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Outlook
hello,
I try to read .pst 2007 file , but it show error "The operation failed. An object could not be found"
in this line
MAPIFolder rootFolder = outlookNs.Stores[pstName].GetRootFolder();
so,please help me, how to solve this
 
thanks in advance
Posted 12-Apr-11 3:55am
situ21474
Edited 13-Apr-11 0:58am
v4
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

One of these support articles (although not directly related to code) could help you out -
 
http://support.microsoft.com/kb/312354[^]
http://support.microsoft.com/default.aspx?scid=kb;EN-US;195754[^]
  Permalink  
v2
Comments
Nishant Sivakumar at 12-Apr-11 9:20am
   
Yes, good links. Voted 5.
Abhinav S at 12-Apr-11 9:24am
   
Thank you Nish.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

There are so many situations with Outlook that can cause this exception that it is almost impossible to suggest a guaranteed solution. The links from Abhinav are a good starting point but if they do not lead you to a solution I would suggest that you use use the error message as a search phrase and search the web.
 
If you do, you should get over 32,000,000 hits. From there it should only take you the rest of your life to go through them. Smile | :)
 
Seriously it is just a matter of looking through them trying to identify one that matches your situation.
 
Good luck!
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

The pstName should be the name of the store which you can find by following the steps in http://support.microsoft.com/kb/312354[^][^]
link provided in solution one.
 
Click Start, point to Settings, and then click Control Panel.
Double-click the Mail icon.
In the Mail Setup dialog box, click Show Profiles.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 406
1 /\jmot 180
2 Suraj Sahoo | Coding Passion 170
3 Afzaal Ahmad Zeeshan 159
4 BillWoodruff 154
0 OriginalGriff 8,344
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,634
3 Maciej Los 5,024
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 3 Jan 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100