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


In reply to [OT] MAPI.Session and NT Service Accounts by maa

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.