Click here to Skip to main content
13,091,134 members (93,140 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 2:55am
Updated 12-Apr-11 23:58pm
Rate this: bad
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 -[^];EN-US;195754[^]
Nishant Sivakumar 12-Apr-11 9:20am
Yes, good links. Voted 5.
Abhinav S 12-Apr-11 9:24am
Thank you Nish.
Rate this: bad
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. :)

Seriously it is just a matter of looking through them trying to identify one that matches your situation.

Good luck!
Rate this: bad
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[^][^]
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 3 Jan 2014
Copyright © CodeProject, 1999-2017
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