Windows service behaviour
System: Windows 2003 SP2 I have a 32-bit executable binary (written in C/C++, and uses COM) that instantiates a COM object and connects to it. This works fine when i run manually, while logged in as Administrator. However, if i run it as a windows service configured to "log on as" Administrator, its able to instantiate the object, but fails to connect. I suspect this has got something to do with security/access permissions. Anybody come across something similar? Any pointers? Details about the service settings provided below. Thanks, Naseer. ============= C:\Tivoli\Agents\GroupwiseAgent\bin>sc qc "tivoli groupwise agent" [SC] QueryServiceConfig SUCCESS SERVICE_NAME: tivoli groupwise agent TYPE : 10 WIN32_OWN_PROCESS START_TYPE : 2 AUTO_START ERROR_CONTROL : 1 NORMAL BINARY_PATH_NAME : C:\Tivoli\Agents\GroupwiseAgent\bin\GroupwiseAgent. exe LOAD_ORDER_GROUP : TAG : 0 DISPLAY_NAME : Tivoli Groupwise Agent DEPENDENCIES : SERVICE_START_NAME : .\Administrator C:\Tivoli\Agents\GroupwiseAgent\bin>sc sdshow "tivoli groupwise agent" D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCR RC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;CR;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)S:(AU;FA;C CDCLCSWRPWPDTLOCRSDRCWDWO;;;WD) C:\Tivoli\Agents\GroupwiseAgent\bin>sc showsid "tivoli groupwise agent" NAME: tivoli groupwise agent SERVICE SID: S-1-5-80-3944333769-2808113955-3588499731-767973152-330648742 C:\Tivoli\Agents\GroupwiseAgent\bin>sc qsidtype "tivoli groupwise agent" [SC] QueryServiceConfig2 SUCCESS SERVICE_NAME: tivoli groupwise agent SERVICE_SID_FLAG: NONE C:\Tivoli\Agents\GroupwiseAgent\bin> ==============
June 29th, 2011 12:27pm

Hi, When the windows service able to instantiate the object but fails to connect, whether any error log in the event viewer. According to the description, the issue seems to be related to development. As we are mainly focus on the management issue and here is not the best support resource for development, it is recommend you to initial a new thread in our MSDN forum. MSDN forum http://social.msdn.microsoft.com/Forums/en-US/categories/ Technology changes life
Free Windows Admin Tool Kit Click here and download it now
July 11th, 2011 11:44am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics