Windows service and Outlook com object.
-
I've written a windows application that is periodically verifying the Inbox folder from Microsoft Outloox ( within an interval of 60 secounds ). This application is working and it does exactly what it has to do. The problem is that the same code putted in a windows service ( the declaration and initialisation of the Outlook Objects are the same in both cases ) seems not to be working, because the Outlook Object is not initialising corectly. At the time of initialisation only it throws and COM exception. So..were i go wrong? I will apreciate any advice. P.S. I've tried to put the collecting function in a Class Library (DLL),and it's still not working.
-
I've written a windows application that is periodically verifying the Inbox folder from Microsoft Outloox ( within an interval of 60 secounds ). This application is working and it does exactly what it has to do. The problem is that the same code putted in a windows service ( the declaration and initialisation of the Outlook Objects are the same in both cases ) seems not to be working, because the Outlook Object is not initialising corectly. At the time of initialisation only it throws and COM exception. So..were i go wrong? I will apreciate any advice. P.S. I've tried to put the collecting function in a Class Library (DLL),and it's still not working.
try this link http://support.microsoft.com/kb/237913 hope this will help you
na