Jump to content

Windows Service issue (via HyperServer)


wjjw

Recommended Posts

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

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • Administrators
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.

Link to comment
Share on other sites

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

  • Like 2
Link to comment
Share on other sites

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

  • Like 3
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 year later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...