IranVisual
شنبه 12 آذر 1390, 13:10 عصر
خسته نباشید
حدودا یک ماهی سایت رو با entity نوشتم و در حال استفاده بودم ولی از چند روز پیش اخطار زیر رو به من می ده .
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]
System.Linq.Enumerable.SingleOrDefault(IEnumerable `1 source) +4222918
System.Data.Objects.ELinq.ObjectQueryProvider.<GetElementFunction>b__2(IEnumerable`1 sequence) +41
System.Data.Objects.ELinq.ObjectQueryProvider.Exec uteSingle(IEnumerable`1 query, Expression queryRoot) +59
System.Data.Objects.ELinq.ObjectQueryProvider.Syst em.Linq.IQueryProvider.Execute(Expression expression) +150
System.Linq.Queryable.SingleOrDefault(IQueryable`1 source) +265
EnglishAcademic.Global.Session_Start(Object sender, EventArgs e) in E:\Developers\Projects\Learning\Shoping\Shopping\E nglishAcademic\Global.asax.cs:28
System.Web.SessionState.SessionStateModule.RaiseOn Start(EventArgs e) +9021443
System.Web.SessionState.SessionStateModule.Complet eAcquireState() +148
System.Web.SessionState.SessionStateModule.BeginAc quireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +561
System.Web.AsyncEventExecutionStep.System.Web.Http Application.IExecutionStep.Execute() +96
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +184
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237
حدودا یک ماهی سایت رو با entity نوشتم و در حال استفاده بودم ولی از چند روز پیش اخطار زیر رو به من می ده .
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]
System.Linq.Enumerable.SingleOrDefault(IEnumerable `1 source) +4222918
System.Data.Objects.ELinq.ObjectQueryProvider.<GetElementFunction>b__2(IEnumerable`1 sequence) +41
System.Data.Objects.ELinq.ObjectQueryProvider.Exec uteSingle(IEnumerable`1 query, Expression queryRoot) +59
System.Data.Objects.ELinq.ObjectQueryProvider.Syst em.Linq.IQueryProvider.Execute(Expression expression) +150
System.Linq.Queryable.SingleOrDefault(IQueryable`1 source) +265
EnglishAcademic.Global.Session_Start(Object sender, EventArgs e) in E:\Developers\Projects\Learning\Shoping\Shopping\E nglishAcademic\Global.asax.cs:28
System.Web.SessionState.SessionStateModule.RaiseOn Start(EventArgs e) +9021443
System.Web.SessionState.SessionStateModule.Complet eAcquireState() +148
System.Web.SessionState.SessionStateModule.BeginAc quireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +561
System.Web.AsyncEventExecutionStep.System.Web.Http Application.IExecutionStep.Execute() +96
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +184
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237