TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Keith Posey
NA
3
0
Windows Service application not opening a PST file
Aug 5 2010 2:59 PM
Hello there---
I have seen a number of postings related to the issue I will describe here, but none of the solutions suggested have resolved the error message I continue to see. I have written a Windows Service that should open a PST file and read through the Inbox to grab the contents of each email there and load the body of the email into a database. I have Outlook 2007 installed on my local machine (where I am developing the service) and I loaded the Microsoft.Office.Interop.Outlook dll to my References. I initially set up the code to run in a WinForms application so I could debug more easily. That version of the application rolls successfully. So I fired up a new Windows Service project and port the code over there... I have verified that all pieces of the code that process the information once it is retrieved work fine (writes to the database successfully), but when the service attempts to open up the Outlook.pst file, I receive the following error (as verified in the Event Viewer since I have the service writing there for exception handling)
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80010001.
OR
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005.
I have set the service to run under the Network Service account.
The articles I have read point to working with dcomcnfg, and I have set the Access Permissions and Launch and Activation Permissions to allow the NETWORK SERVICE account all checkboxes available, but with no success. Can anyone point me in the right direction to continue troubleshooting this issue?
Thanks!
---Keith
Reply
Answers (
2
)
Driving a ACR122 NFC reader with the WINSCARD.DLL
Creating an instance of the COM component with CLSID {E2ED7231-D342-11D3-BC59-0090279AB966} from the IClassFactory failed due to the following error: 80004005.