Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Windows LiveID creating problem..

$
0
0

I have a customer portal which logs in into CRM and returns client details using Windows Live ID orGoogle ID. The login with Google Id works fine. But windows Live ID login is creating the problem.... I am getting this error.

Server Error in '/' Application.

Sequence contains more than one element

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: Sequence contains more than one element

Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 
[InvalidOperationException: Sequence contains more than one element]
   Microsoft.Xrm.Sdk.Linq.QueryProvider.ThrowException(Exception exception) +6
   Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups, String& pagingCookie, Boolean& moreRecords) +665
   Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups) +67
   Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(Expression expression) +129
   Microsoft.Xrm.Sdk.Linq.QueryProvider.System.Linq.IQueryProvider.Execute(Expression expression) +62
   System.Linq.Queryable.SingleOrDefault(IQueryable`1 source, Expression`1 predicate) +287
   Microsoft.Xrm.Portal.IdentityModel.Web.Handlers.FederationAuthenticationHandler.FindContactByUserName(HttpContext context, WSFederationAuthenticationModule fam, IDictionary`2 signInContext, OrganizationServiceContext serviceContext, String identityProvider, String userName) +534
   Microsoft.Xrm.Portal.IdentityModel.Web.Handlers.FederationAuthenticationHandler.TryHandleSignInResponse(HttpContext context, WSFederationAuthenticationModule fam, IDictionary`2 signInContext) +115
   Microsoft.Xrm.Portal.IdentityModel.Web.Handlers.FederationAuthenticationHandler.TryHandleSignInResponse(HttpContext context, WSFederationAuthenticationModule fam) +36
   Microsoft.Xrm.Portal.IdentityModel.Web.Handlers.FederationAuthenticationHandler.ProcessRequest(HttpContext context) +214

[FederationAuthenticationException: Federated sign-in error.]
   Microsoft.Xrm.Portal.IdentityModel.Web.Handlers.FederationAuthenticationHandler.ProcessRequest(HttpContext context) +442
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

It was working fine in the development ...  i have pushed this site into azure...  and i m accessing it through azurewebsites.net

How can i solve this problem????



Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>