# Server exception Session {GUID-xxxx-xxx...} could not be found

**URL:** https://talk.remobjects.com/t/server-exception-session-guid-xxxx-xxx-could-not-be-found/1351
**Category:** Data Abstract
**Created:** [October 24, 2012, 6:17pm UTC](https://talk.remobjects.com/t/server-exception-session-guid-xxxx-xxx-could-not-be-found/1351 "2012-10-24T18:17:19Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Warren\_Postma](https://talk.remobjects.com/user_avatar/talk.remobjects.com/warren_postma/32/459_2.png) [@Warren\_Postma](https://talk.remobjects.com/u/Warren_Postma)
#### Post date: [October 24, 2012, 6:17pm UTC](https://talk.remobjects.com/t/server-exception-session-guid-xxxx-xxx-could-not-be-found/1351/1 "2012-10-24T18:17:19Z")

</div>

I created a brand new DA Custom Server in delphi and DA custom client in Delphi, and the server appears to work, at least it worked well enough for the everwood client-generator GUI to run, connect to it, read its metadata and build things. Now I’m trying to get designtime connectivity of the client to the server. Designtime connectivity means making my TDAMemDataTable objects Active at designtime. That’s my real problem. How do I do it?

I have tried setting the ClientChannel object to Connected. The Login (TROLogin) property of the ClientChannel appears to be set properly (I don’t have any logic in the server requiring a valid user name and password anyways).

Where I’m stuck is when I try to set my tbl\_tablename objects (TDAMemTable) to Active. I get this exception:

`Session {D593AF96-0CDB-408A-9895-54F09508419A} could not be found`

---

<div class="post-metadata">

### Author: ![cristianvasuica](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/c/ebca7d/32.png) [@cristianvasuica](https://talk.remobjects.com/u/cristianvasuica)
#### Post date: [October 25, 2012, 10:44am UTC](https://talk.remobjects.com/t/server-exception-session-guid-xxxx-xxx-could-not-be-found/1351/2 "2012-10-25T10:44:52Z")

</div>

@Warren hi! I think that in the login service your session guid is not registred! but if you want to test it without a session you have a property (Require connection) on the dataservice located to the server. If you uncheck it your table should open. Excuse me if I am wrong (I am still a beginner with DataAbstract, but I want to help you because you also helped me with some questions on stackoverflow);

---

<div class="post-metadata">

### Author: ![Warren\_Postma](https://talk.remobjects.com/user_avatar/talk.remobjects.com/warren_postma/32/459_2.png) [@Warren\_Postma](https://talk.remobjects.com/u/Warren_Postma)
#### Post date: [October 25, 2012, 11:01am UTC](https://talk.remobjects.com/t/server-exception-session-guid-xxxx-xxx-could-not-be-found/1351/3 "2012-10-25T11:01:26Z")

</div>

That could be exactly the problem.

---

<div class="post-metadata">

### Author: ![cristianvasuica](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/c/ebca7d/32.png) [@cristianvasuica](https://talk.remobjects.com/u/cristianvasuica)
#### Post date: [October 25, 2012, 11:16am UTC](https://talk.remobjects.com/t/server-exception-session-guid-xxxx-xxx-could-not-be-found/1351/4 "2012-10-25T11:16:30Z")

</div>

Here is what I have on my login service implementation on the server; ValidateLogin is a service method on your login schema which queries the db for a user and the result is returned as a dataset;

procedure TLoginService.LoginServiceLogin(Sender: TObject; aUserID,  
aPassword: Utf8String; out aUserInfo: UserInfo; var aLoginSuccessful: Boolean);  
var  
iduser,idgroup,numereal :string;  
cmd : IDADataset;  
begin  
cmd := Schema.NewDataset(Schema.ConnectionManager.NewConnection(Schema.ConnectionManager.GetDefaultConnectionName), ‘ValidateLogin’, [‘UserId’, ‘Pass’], [aUserID, aPassword]);  
cmd.Open;  
if not cmd.eof then begin  
aLoginSuccessful := true;  
end;  
if aLoginSuccessful then begin  
aUserInfo := UserInfo.Create;  
aUserInfo.SessionID := UTF8String(GuidToAnsiString(ClientID));  
aUserInfo.UserID := aUserID;  
Session[‘UserID’] := aUserID;  
end  
else begin  
DestroySession;  
end;  
end;

---

<div class="post-metadata">

### Author: ![Warren\_Postma](https://talk.remobjects.com/user_avatar/talk.remobjects.com/warren_postma/32/459_2.png) [@Warren\_Postma](https://talk.remobjects.com/u/Warren_Postma)
#### Post date: [October 25, 2012, 3:31pm UTC](https://talk.remobjects.com/t/server-exception-session-guid-xxxx-xxx-could-not-be-found/1351/5 "2012-10-25T15:31:20Z")

</div>

I tried to do that, but got stuck again, because “Schema.ConnectionManager” is nil on me when I try this.

---

<div class="post-metadata">

### Author: ![Warren\_Postma](https://talk.remobjects.com/user_avatar/talk.remobjects.com/warren_postma/32/459_2.png) [@Warren\_Postma](https://talk.remobjects.com/u/Warren_Postma)
#### Post date: [October 25, 2012, 3:50pm UTC](https://talk.remobjects.com/t/server-exception-session-guid-xxxx-xxx-could-not-be-found/1351/6 "2012-10-25T15:50:02Z")

</div>

Somehow when setting up my schema object, I forgot to properly set its ConnectionManager property in my new login service. Oops. Now it all works!

---

<div class="post-metadata">

### Author: ![vovanl](https://talk.remobjects.com/user_avatar/talk.remobjects.com/vovanl/32/51_2.png) [@vovanl](https://talk.remobjects.com/u/vovanl)
#### Post date: [October 26, 2012, 11:31am UTC](https://talk.remobjects.com/t/server-exception-session-guid-xxxx-xxx-could-not-be-found/1351/7 "2012-10-26T11:31:17Z")

</div>

Hello,  
Please look at ‘Design Time Login’ article:  
[http://wiki.remobjects.com/wiki/Login\_and\_Authentication](http://wiki.remobjects.com/wiki/Login_and_Authentication)

Execute ‘Get design time Data’ popup-menu command on TDAMemDataTable component.

---

<div class="post-metadata">

### Author: ![tobygroves](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/3da27b/32.png) [@tobygroves](https://talk.remobjects.com/u/tobygroves)
#### Post date: [October 20, 2016, 10:48am UTC](https://talk.remobjects.com/t/server-exception-session-guid-xxxx-xxx-could-not-be-found/1351/8 "2016-10-20T10:48:30Z")

</div>

Where is this article now, I need to refresh my memory

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [October 25, 2016, 7:24am UTC](https://talk.remobjects.com/t/server-exception-session-guid-xxxx-xxx-could-not-be-found/1351/9 "2016-10-25T07:24:35Z")

</div>

[http://old.wiki.remobjects.com/wiki/Login\_and\_Authentication](http://old.wiki.remobjects.com/wiki/Login_and_Authentication)
