Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
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
Updated 12-Apr-11 23:58pm
v4

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[^]
 
Share this answer
 
v2
Comments
Nish Nishant 12-Apr-11 9:20am    
Yes, good links. Voted 5.
Abhinav S 12-Apr-11 9:24am    
Thank you Nish.
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!
 
Share this answer
 
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.
 
Share this answer
 

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


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900