Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User name and email uniqueness should be enforced #10

Closed
orchardbot opened this issue Nov 18, 2009 · 1 comment
Closed

User name and email uniqueness should be enforced #10

orchardbot opened this issue Nov 18, 2009 · 1 comment
Labels

Comments

@orchardbot
Copy link

@bradmi created:
https://orchard.codeplex.com/workitem/14887

Symptom: Log in throws System.InvalidOperationException: Sequence contains more than one element

  1. Click Log In link
  2. Click Register to create a new account and sign in
  3. Click Log Out link to sign out
  4. Click Log In link again
  5. Attempt to sign in with previously specified credentials

RESULT:

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:

Line 97:
Line 98: public virtual T Get(Expression<Func<T, bool>> predicate) {
Line 99: return Fetch(predicate).SingleOrDefault();
Line 100: }
Line 101:

Source File: C:\Orchard\trunk\src\Orchard\Data\Repository.cs Line: 99

Stack Trace:
[InvalidOperationException: Sequence contains more than one element]
System.Linq.Enumerable.SingleOrDefault(IEnumerable1 source) +733860 NHibernate.Linq.Visitors.ImmediateResultsVisitor1.HandleSingleOrDefaultCall(MethodCallExpression call) +62
NHibernate.Linq.Visitors.ImmediateResultsVisitor1.VisitMethodCall(MethodCallExpression call) +408 NHibernate.Linq.Visitors.ExpressionVisitor.Visit(Expression exp) +341 NHibernate.Linq.Visitors.NHibernateExpressionVisitor.Visit(Expression exp) +204 NHibernate.Linq.Visitors.ImmediateResultsVisitor1.GetResults(MethodCallExpression expr) +12
NHibernate.Linq.Visitors.RootVisitor.HandleImmediateResultsCall(MethodCallExpression call) +174
NHibernate.Linq.Visitors.RootVisitor.VisitMethodCall(MethodCallExpression expr) +703
NHibernate.Linq.Visitors.ExpressionVisitor.Visit(Expression exp) +341

@orchardbot
Copy link
Author

@loudej commented:

The problem is a user name is not unique. For now, use the admin interface to change one of the user's names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant