Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Cannot activate a remote session with the server engine.
Sat, Oct 17 2009 4:38 AMPermanent Link

Sean Cross
I am using DBISAM 4.26 and trying the server option for the first time.  For the life of
me, I can't connect to the server.

I am running hte standard supplied server.  I have logged in using the admin tool and set
up a user and a database.

On a blank from, I have dropped a Session, a database and a table.

I set the Session and database properties as follows:

 object DBISAMDatabase1: TDBISAMDatabase
   EngineVersion = '4.26 Build 1'
   DatabaseName = 'RPM'
   RemoteDatabase = 'RPM'
   KeepTablesOpen = False
   SessionName = 'Remo'
   Left = 256
   Top = 56
 end
 object DBISAMSession1: TDBISAMSession
   EngineVersion = '4.26 Build 1'
   LockRetryCount = 15
   LockWaitTime = 100
   LockProtocol = lpPessimistic
   ProgressSteps = 20
   SessionName = 'Remo'    <<<<<
   SessionType = stRemote  <<<<<
   RemoteEncryption = False
   RemoteEncryptionPassword = 'elevatesoft'
   RemoteCompression = 0
   RemoteAddress = '127.0.0.1'
   RemotePort = 12005
   RemoteTrace = False
   RemoteTimeout = 300
   RemotePing = False
   RemotePingInterval = 60
   Left = 112
   Top = 48
 end

I think this should be sufficient.  However if I try to activate the session or the
database, I get the "Cannot activate a remote session with the server engine." error.

Both client and server are on the same machine, and the admin app can find the server.

Any ideas?
Sat, Oct 17 2009 10:34 PMPermanent Link

Tony Pomfrett
Sean, I haven't tested this but I always set DatabaseName and RemoteDataBase to different values. Try changing DatabaseName to "Main" for example (and also change this for any query or table components). Also check that the server is
set up to accept unencrypted connections since you have RemoteEncryption off in the Session component.
Mon, Oct 19 2009 7:31 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Sean,

<< I think this should be sufficient.  However if I try to activate the
session or the database, I get the "Cannot activate a remote session with
the server engine." error. >>

This can happen if you had the dbsrvr.dpr project open at any time, or had
any previous project open that contained a TDBISAMEngine component with its
EngineType property set to etServer.

Just drop a TDBISAMEngine component on the form, and make sure that its
EngineType property is set to etClient.  That will fix it.

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Oct 22 2009 7:03 PMPermanent Link

Sean Cross
"Tim Young [Elevate Software]" wrote:

Sean,

<< I think this should be sufficient.  However if I try to activate the
session or the database, I get the "Cannot activate a remote session with
the server engine." error. >>

This can happen if you had the dbsrvr.dpr project open at any time, or had
any previous project open that contained a TDBISAMEngine component with its
EngineType property set to etServer.

Just drop a TDBISAMEngine component on the form, and make sure that its
EngineType property is set to etClient.  That will fix it.

--
Tim Young
Elevate Software
www.elevatesoft.com

Thanks. It looks like taht was the problem.

Sean
Image