wjjw Posted July 29, 2020 Share Posted July 29, 2020 Hello! I was developing an application which I deployed as StandAlone applications. It is working fine. After that I startet the app via HyperServer and it also works fine. Now I wanted to run it as a Windows Service with HyperServer on a Windows server. This is not working (same settings). Not working means that the loading of the page will take so long until timeout. I even tried it out on a "normal Windows PC" - same issue - hyper_server is working and hyper_service not! My question is now what can be the issue. I check the "hyper_server_exe" log and see this row when I try to access the app: hyper_service.exe: 00000650: 16:15:33 [Indy]:EIdHTTPErrorParsingCommand : Error in parsing command. : Addr: $00xxxxxx. Anyone any idea? According to the document there should be not any issues. Can the logging be extended? Best regards, /Werner Quote Link to comment Share on other sites More sharing options...
wjjw Posted July 29, 2020 Author Share Posted July 29, 2020 I tested on two computers - one Windows Server 2019 and a Windows 10 PC. Same issue with both machines - hyper_server is working and hyper_service not (with same settings). Application is a simple one with the wizard on the form just a label and a button without code. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 29, 2020 Administrators Share Posted July 29, 2020 Hi, Can you please specify if you have any sort of antivirus or 3rd party protection software installed on your PC? Quote Link to comment Share on other sites More sharing options...
wjjw Posted August 3, 2020 Author Share Posted August 3, 2020 Hello, no antivirus on PC for testing. As I wrote with the hyper_server.exe it is working - only not with hyper_service.exe. Does anyone has the hyper_service running with current version of uniGUI? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 3, 2020 Administrators Share Posted August 3, 2020 14 minutes ago, wjjw said: Hello, no antivirus on PC for testing. As I wrote with the hyper_server.exe it is working - only not with hyper_service.exe. Does anyone has the hyper_service running with current version of uniGUI? I have tested it with a basic uniGUI app and it works normally. Quote Link to comment Share on other sites More sharing options...
wjjw Posted August 3, 2020 Author Share Posted August 3, 2020 Can I somehow check (logging, debugging, ...) of the hyper_service application? I will try it on other computers also to check it again. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 4, 2020 Administrators Share Posted August 4, 2020 18 hours ago, wjjw said: Can I somehow check (logging, debugging, ...) of the hyper_service application? I will try it on other computers also to check it again. Yes, it is good to try on a different PC first. Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted August 4, 2020 Share Posted August 4, 2020 On 8/3/2020 at 1:21 PM, wjjw said: Can I somehow check (logging, debugging, ...) of the hyper_service application? I will try it on other computers also to check it again. Hello WjjW, Deploying Unigui Application as Windows Service / HyperServer, requires somme settings before : 1- Installing the Unigui Runtime on Server Side 2- Allowing Windows Defender (ExclusionProcess + ExclusionPath) 3- Installing Application 4- Allowing FireWall (Process: project1.exe + Service: Hyper_Service.exe + Port Trafique in / Out ) 5- Installing Service / Hyper_Service 6- Installing HyperServer_Config 7- (And optionnally) your RDBM You can try my EasyInstaller 3.0 in attachment, and let me know. Regards. EasyInstall_3.0.zip 2 Quote Link to comment Share on other sites More sharing options...
david_navigator Posted August 4, 2020 Share Posted August 4, 2020 Not sure if this is related, but the LocalService user doesn't have access to the network by default. Have you tried running as a different service user ? Quote Link to comment Share on other sites More sharing options...
wjjw Posted August 8, 2020 Author Share Posted August 8, 2020 Hello all, thanks for your feedback. Finally I found the errors.. 1. As I executed my app via https - there is a need in the "hyper_service.ssl.cfg" to Enable this settings by: SSL.Enabled = True 2. This takes me a long time to find out... In the same file "hyper_service.ssl.cfg" there are links to the filenames of the certificates. I was using just the filename here - example: 'root.pem'. The tricky thing is this is working fine with the "hyper_server" but not with the "hyper_service". After checking the Windows event-logs I saw the issue. So solution was to enter here the full path to the certificate files by: SSL.SSLOptions.RootCertFile = 'C:\Webserver\root.pem' SSL.SSLOptions.CertFile = 'C:\Webserver\cert.pem' SSL.SSLOptions.KeyFile = 'C:\Webserver\key.pem' So if someone else has similar issue - hope this will help. Best regards, /Werner 3 Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted August 8, 2020 Share Posted August 8, 2020 49 minutes ago, wjjw said: So solution was to enter here the full path to the certificate files by: SSL.SSLOptions.RootCertFile = 'C:\Webserver\root.pem' SSL.SSLOptions.CertFile = 'C:\Webserver\cert.pem' SSL.SSLOptions.KeyFile = 'C:\Webserver\key.pem' So if someone else has similar issue - hope this will help. Best regards, /Werner Thx to share. Quote Link to comment Share on other sites More sharing options...
stf Posted September 2, 2021 Share Posted September 2, 2021 Thank you very much! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.