🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3923

Socket problems between application and service application when service installed under local system account

#3923
From: Daniel Stevenson
Date: Tue, 31 May 2005 05:51
39 lines
3128 bytes
I'm sorry if this problem doesn't fit in this group as it covers a few
different areas...and sorry for the lengthy subject heading.

I've created a service application and a application to communicate with the
service via TServerSockets, when run from my development environment all is
good, I have no problems connecting to the service and sending and receiving
information.

When I then install the service and application using Installshield, I can
no longer make a successful socket connection.  I'm assuming that this has
something to do with how the service is installed, which I'm assuming is
installed under its own local system account and therefore is causing
problems for me.

I have noticed that when the installshield installs the service, I can start
and stop the service but I can't uninstall the service using /uninstall when
logged into the machine, it is this observation that makes me think that
there is a problem with permissions which is causing my socket connection to
not work.

Just to clarify, if I let installshield install the files but not install
the service application and I manually run "MyService /install", and then
run my application, it is able to communicate properly over sockets with the
service..  So the only difference is in how the service is installed.

I dont' beleive this is a installshield problem as I'm sure if I learned how
to use the api correctly I could reproduce the same thing by having the
service installed in its local system account rather than the account of the
logged in user - alternatively, I could reproduce this my installing the
service under one account and then trying to use it under a different
account

I realise I can get around this problem by having all users logging into the
machine under the same account that the service was installed under, but I'm
looking for a more robust solution that will allow any user account to run
the application and still have abilities to communicate with the service.

I also am not sure where the problem lies, whether its the application, the
socket connection with the service or the service itself...Can anyone help?
Technical Details
Message-ID: <429bfb58$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,18a7896b72b8d882,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Daniel Stevenson" <daniel@ocreage.com.au>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Socket problems between application and service application when service installed under local system account
Date: Tue, 31 May 2005 15:51:29 +1000
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 202.174.233.53
Message-ID: <429bfb58$2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1117518680 202.174.233.53 (30 May 2005 22:51:20 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail