This may be a windows service "feature". Depending on how the service is set up you may be unable to use network resources (e.g. connecting to a database on a remote server, seeing some network drives).

Check your service setup, if it is using the default account this could be the problem. Reconfigure it to use your login and password and it should work. Except that is unbelievably ugly for distributing applications... Anyway test this with a simple application first.

I have run into a couple of pieces of software that absolutely refuse to run as services. In those cases I set up a server program that is always running listening for requests on a specified port. The perl service connects to the network socket and requests that the server program runs the buggy executable. /msg me if you want some advice - the code is not even gamma quality, it is hideously insecure so it's not reuse ready.

Ugly, ugly, ugly.

"The future will be better tomorrow."


In reply to Re: PerlSvc Blues... by Mungbeans
in thread PerlSvc Blues... by cmilfo

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.