RTC Forums
November 24, 2024, 05:42:50 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: how to run rtc application on windows server 2008 r2  (Read 4544 times)
mteirek
RTC Expired
*
Posts: 9


« on: May 21, 2015, 02:17:39 PM »

1- server application built with rtc  in 5 minutes -> server_02.exe
2- server work nice in localhost
3- upload to my server ( Windows server 2008 r2 )
4- Gui-application run fine when i run exe from command line

i try to run this app as service :

1- sc create "rtcserver" binPath="C:\rtc\server_02.exe"
-> [SC] CreateService SUCCESS

2- sc start "rtcserver"
-> [SC] StartService FAILED 1053 :
-> the service did not resond to the start or control request in a timely fashion.

any help please

Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: May 21, 2015, 02:54:19 PM »

Look at the RTC WebServer Demo Project for an example on writing a Delphi Application which can run as a normal GUI process (using a Form) or as a Windows Service (using a Service Module). Take a closer look at the Project Source Code (DPR file) to see how you can distinguish between a "Desktop" and a "Service" mode (they are not the same) to create and run the appropriate Application module.

NOTE: Windows Services do NOT automatically create a message queue, which is required for RTC components. To make sure your process will be running as a Windows Service, you need to set the "MultiThreaded" property on the TRtcHttpServer component to TRUE and make sure that your code is thread-safe.

Best Regards,
Danijel Tkalcec
Logged
mteirek
RTC Expired
*
Posts: 9


« Reply #2 on: May 21, 2015, 05:59:15 PM »

RTC WebServer Demo work nice as service.

now i need to isolate the Windows-service part from the project to work with it

best rgards
mteirek
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.023 seconds with 17 queries.