maa has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
The question is a bit off topic as it's not Perl that seems to be causing my headache and you guys are a mine of useful nuggets...
I've written a mailbox monitor program in perl but I want to run it as a service. I have run other perl programs as service using Win32::Deamon and they're fine.
As this is email I'm using Win32::OLE to create either a MAPI.Session object or an Outlook.Application object depending on which straw I'm clutching at.
All the variations I've tried which run from the a console under my own context or under the service account's context (interactive) or even remotely using psexec (non-interactive) fail when I try to start them from Server Manager
They fail with 0x80040154 - "class not registered" for Outlook.Application and MAPI.Server
Does anyone know why or any workarounds for connecting to a MAPI store using a Windows NT Service Account? I've searched the web/usenet without much luck (other than install Exchange Sp2 - but I don't need/have Exchange)
Sorry for rambling... any help greatly appreciated.
--
Mark