#1 2013-01-25 15:52:10

danielrail
Member
Registered: 2013-01-25
Posts: 2

Encountering problems with sample 04 - HTTP Client-Server

Hi,

I'm just starting to learn mORMot.  I downloaded the latest version from the source repository(1.18), as I'm very interested in the Firebird support.  I'm currently using Delphi XE2, with all the updates.

The problem that I'm encountering with the sample is an odd one for me.  If I run the server within Delphi, everything works fine.  But, if I run the server outside of Delphi, there's no connectivity between the client and the server.  And, that is even with the firewall deactivated.  Also, I turned the authentication off in the server and commented the corresponding line in the client.

Any ideas would be appreciated.

Daniel

Offline

#2 2013-01-25 18:42:28

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

Re: Encountering problems with sample 04 - HTTP Client-Server

You have to register the URI:port for http.sys, so perhaps try to run the server as Administrator or execute TestSQL3Register.dpr once.

Is the server running?
Are you able to connect with your browser?

Offline

#3 2013-01-25 18:56:56

danielrail
Member
Registered: 2013-01-25
Posts: 2

Re: Encountering problems with sample 04 - HTTP Client-Server

Thanks for responding. 

I simply needed to run the server as administrator, for everything to work.  And, that explains why it worked running through Delphi, since Delphi is running as administrator.

Now, back to learning.

Offline

#4 2013-01-25 19:14:32

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

Re: Encountering problems with sample 04 - HTTP Client-Server

See http://blog.synopse.info/post/2011/03/1 … ode-server for an explanation.

This is a security feature of http.sys / Windows since Vista/Seven.

Direct Firebird connection is on its way...
But ODBC provider seems to work pretty well, in the meantime.
See http://synopse.info/forum/viewtopic.php?pid=6363#p6363

Offline

Board footer

Powered by FluxBB