SocketServer Application does not work while running as a service(Read 18208 times)
Hi,

We have a SocketServer EXE application that runs on port 9000. We would like this application to start running as a service so that there be less user intervention for starting the application.

The basic operation of the application is that you pass a unc filename to the app via the socket, which then in turn copy the file to a pre-defined location and give it a new filename, while responding back with the new filename to the calling application.

The issue is that when the application runs as a standard EXE, everything works fine, but when we run it as a service via Application as Service, we get an exception where either the service cannot stream the file or the filestream is terminated abnormally.

Herewith my XML file:
==================================================
<?xml version="1.0"?>

<Application_as_service>
   <Program>
      <ServiceName>GICSAWTest</ServiceName>
      <Display>GICSAW Test</Display>
      <WorkDir>D:\GICSAWTest\</WorkDir>
      <Executable>D:\GICSAWTest\Server.exe</Executable>
      <Parameters>Test</Parameters>
   </Program>
   <Settings>
      <Account>.\administrator</Account>
      <Passwordpassword1</Password>
      <StartType>Automatic</StartType>
      <ShowWindow>Maximized</ShowWindow>
      <UponProgramExit>Restart the program</UponProgramExit>
   </Settings>
   <Advanced>
   </Advanced>
   <Dependencies>
   </Dependencies>
   <Environment>
   </Environment>
   <Recovery>
   </Recovery>
   <Pre-service>
   </Pre-service>
   <Post-service>
   </Post-service>
   <Schedules>
   </Schedules>
</Application_as_service>
==================================================
Hope you can assist. Please let me know should you require additional information.

Kind regards,

Riaan



Hello,
Please run the service as  LocalSystem.
Please follow the instructions:
Application as Service -> Edit Service -> Settings -> Logon -> User Account -> Local System.
Feel free to contact us whenever you have any questions or propositions concerning our software.



 

Sitemap 1 2 3 4 5