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) +348
   BLToolkit.Data.Linq.ExpressionInfo`1.<MakeElementOperator>b__43(QueryContext ctx, IDataContextInfo db, Expression expr, Object[] ps) +49
   BLToolkit.Data.Linq.Table`1.System.Linq.IQueryProvider.Execute(Expression expression) +70
   System.Linq.Queryable.SingleOrDefault(IQueryable`1 source) +211
   MainBL.<>c__DisplayClass2_0.<GetSpeaker>b__0(SpeakerDbManager context) in C:\dev\aishaudio.com\Repository-for-Aishaudio.com-Code\AishAudio\ClassLibraries.BL\MainBL\SpeakerService.cs:58
   MyPartnerKinoBL.BLToolkitExtension.Exec(Td db_manager, Func`2 func, IsolationLevel transaction_level) in C:\dev\aishaudio.com\Repository-for-Aishaudio.com-Code\AishAudio\ClassLibraries.Common\MainCommon\Extension\BLToolkitExtension.cs:22
   MyPartnerKinoBL.Extension.BaseBO.Exec(IsolationLevel transaction_level, Func`2 func) in C:\dev\aishaudio.com\Repository-for-Aishaudio.com-Code\AishAudio\ClassLibraries.Common\MainCommon\Extension\BaseBO.cs:41
   MainBL.SpeakerService.GetSpeaker(String name) in C:\dev\aishaudio.com\Repository-for-Aishaudio.com-Code\AishAudio\ClassLibraries.BL\MainBL\SpeakerService.cs:55
   Main.Controllers.SearchController.ResultsDetail(Int32 p, Int32 ps, Int32 rn, String cat, String words, String code, String title, String id, String speaker, Int64 class, String category, Boolean cd, Boolean mp3, Boolean tape, Nullable`1 sort, Boolean filter, String cat_equals, Int32 level, Int32 additional) in C:\dev\aishaudio.com\Repository-for-Aishaudio.com-Code\AishAudio\Web\AishAudioMain\Main\Controllers\SearchController.cs:214
   lambda_method(Closure , ControllerBase , Object[] ) +870
   System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +182
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
   System.Web.Mvc.Async.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41() +28
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +10
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +32
   System.Web.Mvc.Async.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33() +58
   System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +228
   System.Web.Mvc.Async.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34
   System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +24
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +99
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +14
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +16
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +16
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +25
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +16
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9875181
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0