You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symptom: Log in throws System.InvalidOperationException: Sequence contains more than one element
Click Log In link
Click Register to create a new account and sign in
Click Log Out link to sign out
Click Log In link again
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:
@bradmi created:
https://orchard.codeplex.com/workitem/14887
Symptom: Log in throws System.InvalidOperationException: Sequence contains more than one element
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(IEnumerable
1 source) +733860 NHibernate.Linq.Visitors.ImmediateResultsVisitor
1.HandleSingleOrDefaultCall(MethodCallExpression call) +62NHibernate.Linq.Visitors.ImmediateResultsVisitor
1.VisitMethodCall(MethodCallExpression call) +408 NHibernate.Linq.Visitors.ExpressionVisitor.Visit(Expression exp) +341 NHibernate.Linq.Visitors.NHibernateExpressionVisitor.Visit(Expression exp) +204 NHibernate.Linq.Visitors.ImmediateResultsVisitor
1.GetResults(MethodCallExpression expr) +12NHibernate.Linq.Visitors.RootVisitor.HandleImmediateResultsCall(MethodCallExpression call) +174
NHibernate.Linq.Visitors.RootVisitor.VisitMethodCall(MethodCallExpression expr) +703
NHibernate.Linq.Visitors.ExpressionVisitor.Visit(Expression exp) +341
The text was updated successfully, but these errors were encountered: