I am getting the below error when I try to access Outlook folder to download an attachment from my inbox. My code working perfectly when I run from Windows Form application. But when I use Windows Service to auto scan the Outlook folder, I am getting this issue.
*PollingService encountered an error 'Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005.'
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.*