New Posts New Posts RSS Feed: Help with EntityServerException
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Help with EntityServerException

 Post Reply Post Reply
Author
scapstick View Drop Down
Newbie
Newbie


Joined: 18-May-2012
Posts: 5
Post Options Post Options   Quote scapstick Quote  Post ReplyReply Direct Link To This Post Topic: Help with EntityServerException
    Posted: 21-May-2012 at 7:45am
After logging in the client makes ~15 calls for data and two of them return this error:
LoginException: Unable to login: Object reference not set to an instance of an object. --->
   at IdeaBlade.EntityModel.RemoteEntityServerProxyBase.CheckConnection(Exception pException)
   at IdeaBlade.EntityModel.EntityServerProxy.ExecFunc[T](Func`1 func, Boolean funcWillHandleException)
   at IdeaBlade.EntityModel.EntityServerProxy.ExecuteOnServer[T](Func`1 func, Boolean funcWillHandleException)
   at IdeaBlade.EntityModel.EntityServerProxy.Login(ILoginCredential credential)
   at IdeaBlade.EntityModel.Security.Authenticator.<>c__DisplayClass9.<LoginCoreAsync>b__4(LoginOperation op)
   at IdeaBlade.EntityModel.AsyncProcessor`1.<Execute>b__4(Object o)}
I looked at the wiki topic on it and I can tell you this:
Operation is Login
FailureType is Other
InnerException is null
All RemoteException fields are null
 
What can I look at next to figure out what is wrong?  This is SL5 & DF 6.1.6.
 
Thanks,
Sean


Edited by scapstick - 21-May-2012 at 7:45am
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 21-May-2012 at 12:38pm
Hi Sean,
 
Can you provide your LoginManager?
It appears that once you login, you are still attempting to login for each data call.
 
Regards,
   Silvio.
Back to Top
scapstick View Drop Down
Newbie
Newbie


Joined: 18-May-2012
Posts: 5
Post Options Post Options   Quote scapstick Quote  Post ReplyReply Direct Link To This Post Posted: 21-May-2012 at 4:56pm
Your request made me look at the custom LoginManager on the server and I found the null reference.  The Login method is being called with a null credential which wasn't being handled, I've changed it to throw an exception like one of the examples does.  I didn't write this, I'm learning as I try to get it running.
I'm going to look at the manager some more and see what's being called and returned, see if the login is being called repeatedly on the calls that do work or maybe it just called the login again because the credential was null?
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 23-May-2012 at 9:56am
Hi Sean,
 
If you logged in passing null credentials, then you'd be logged in as a guest user and wouldn't need to login again.
 
Silvio.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down