Silverlight &引用;登录成功后,必须对用户进行身份验证。”;

Silverlight &引用;登录成功后,必须对用户进行身份验证。”;,silverlight,wcf-ria-services,Silverlight,Wcf Ria Services,此异常是为我的silverlight应用程序上的一小部分用户生成的。这是一款有3年历史的应用程序,以前登录时没有问题。我将数据访问技术从linq2sql模型切换到EF6 AuthenticationService.Login(userName, password, bool..., string...) 对于每个用户,上述方法正常完成。数据库的东西发生得很好,对所有用户都一样,但是对于少数用户,返回的UserBase对象的IsAuthenticated boolean属性设置为false,这会

此异常是为我的silverlight应用程序上的一小部分用户生成的。这是一款有3年历史的应用程序,以前登录时没有问题。我将数据访问技术从linq2sql模型切换到EF6

AuthenticationService.Login(userName, password, bool..., string...)
对于每个用户,上述方法正常完成。数据库的东西发生得很好,对所有用户都一样,但是对于少数用户,返回的UserBase对象的IsAuthenticated boolean属性设置为false,这会导致异常

   at OpenRiaServices.DomainServices.Client.ApplicationServices.LoginResult..ctor(IPrincipal user, Boolean loginSuccess)
   at OpenRiaServices.DomainServices.Client.ApplicationServices.WebAuthenticationService.EndLogin(IAsyncResult asyncResult)
   at OpenRiaServices.DomainServices.Client.ApplicationServices.LoginOperation.EndCore(IAsyncResult asyncResult)
   at OpenRiaServices.DomainServices.Client.ApplicationServices.AuthenticationOperation.End(IAsyncResult result)
从堆栈跟踪中可以看到,它正在运行最新的OpenRIA服务

如果有人知道是什么导致了这种问题,我洗耳恭听

提前感谢。

这是本书的主题

我的一些用户的“凭证名称”为空字符串,因此登录成功,但标志返回false

        [ProfileUsage(IsExcluded = true)]
        [Exclude]
        public bool IsAuthenticated
        {
            get { return !string.IsNullOrEmpty(this.Name); }
        }