#1 2013-02-14 17:48:08

ManUn
Member
Registered: 2013-02-04
Posts: 22

mormort as Windows Service

Hello,

I'm trying to create a Server as Windows Service. The server has a TSQLRestServerDB and TSQLHttpServer.

I install the service and everything is fine, but the TSQLHttpServer don't start (I guess...) because I can't connect the client with the server.

What could be wrong? Is there a example how to create a service with mormot?

Offline

#2 2013-02-14 17:53:54

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: mormort as Windows Service

I've deployed several HTTP services using mORMot, with no problem, under XP, Seven or 2008.
Since services are usually run with administrator rights, you do not even need to register the URI.

Are you sure of your routing URI on both Client and Server side?

What are any errors at binding?

Does your server code work when it is not run as a service?

Offline

#3 2013-02-14 17:59:12

ManUn
Member
Registered: 2013-02-04
Posts: 22

Re: mormort as Windows Service

Yes the server works when it is not run as a service.

Wich event of the Service do you use to create the TSQLHttpServer?

Last edited by ManUn (2013-02-14 17:59:31)

Offline

#4 2013-02-14 18:11:36

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: mormort as Windows Service

Enable the logs and check the events / exceptions.

The HTTP server uses the HTTP API supplied by Windows, or, in case of problem, a custom raw socket HTTP server.

Offline

#5 2013-02-16 17:31:31

ManUn
Member
Registered: 2013-02-04
Posts: 22

Re: mormort as Windows Service

How can I do that? Is It a property of the TSQLHttpServer?

Offline

Board footer

Powered by FluxBB