Problem during RIA authentication

Posted by VexXtreme on Stack Overflow See other posts from Stack Overflow or by VexXtreme
Published on 2010-06-08T15:49:39Z Indexed on 2010/06/08 15:52 UTC
Read the original article Hit count: 794

Hi

I've built an authentication service in RIA that inherits from DomainService and IAuthenticate.

The problem is following:

When LoginOperation fails (loginOperation.LoginSuccess is false) due to wrong credentials, everything is ok and it is reported to the user.

However, when login succeeds, I get throw a really weird exception:

{System.ServiceModel.DomainServices.Client.DomainOperationException: Load operation failed for query 'Login'. Value cannot be null.

Parameter name: validationErrors ---> System.ArgumentNullException: Value cannot be null. Parameter name: validationErrors at System.ServiceModel.DomainServices.Client.QueryCompletedResult..ctor(IEnumerable1 entities, IEnumerable1 includedEntities, Int32 totalCount, IEnumerable`1 validationErrors)


I don't really understand this. What is IEnumerable validationErrors, where does it appear and why does it have to be != null ? This started happening after I ported my authentication services from Nhibernate to Entity Framework. I've even tried googling this exception and apparently I'm the only one with this problem so far.

Any help would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about c#

Related posts about Silverlight