SDC Server as Windows Service


Author
Message
pserengulian
pserengulian
Supreme Being (1K reputation)Supreme Being (1K reputation)Supreme Being (1K reputation)Supreme Being (1K reputation)Supreme Being (1K reputation)Supreme Being (1K reputation)Supreme Being (1K reputation)Supreme Being (1K reputation)Supreme Being (1K reputation)
Group: Forum Members
Posts: 7, Visits: 11
Say I've licensed my host and successfully created an SDC server and client application. I want to then add the server application to the list of Windows Services so that the executable can be run during system startup. This would be useful in case the server host reboots or shuts down because of an electrical failure or Windows updates. At startup the SDC server application could then restart without any user interaction. The same could be done for the panels app, but for now I'd like to concentrate on getting one of them working.



I know how to create a service in Windows using the 'sc' command in DOS. Refer to Microsoft KB251192. The 'sc' command will create the service and then you can add a description and set the startup type to 'Automatic.'



The problem I have is that when I try to start the service I get this error message:



Error 1053: The service did not respond to the start or control request in a timely fashion.



I did some web searches and the common search result was something to do with the .NET framework. It's not an issue of privileges since I'm trying to start the service as a user with admin rights. I tried hacking the registry to extend the timeout period based on one Google search result, but that had no effect. Is there some chunk of code I have to add to each driver for each device in my form in order for the SDC server to communicate with Windows to tell Windows the service was started? Maybe this is an enhancement request for SDC 2007 to have an option to create a Windows service when compiling and creating the executables.



Thanks,

Patrick



Software Engineer :: Control Arts, LLC :: www.ca-automation.net

Software Engineer :: Control Arts, LLC
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic
1 active, 1 guest, 0 members, 0 anonymous
No members currently viewing this topic!

Login

Explore
Messages
Mentions
Search