Print Page | Close Window

Help with EntityServerException

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3448
Printed Date: 02-Apr-2025 at 6:03pm


Topic: Help with EntityServerException
Posted By: scapstick
Subject: Help with EntityServerException
Date 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



Replies:
Posted By: sbelini
Date 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.


Posted By: scapstick
Date 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?


Posted By: sbelini
Date 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.



Print Page | Close Window