Server Error in '/' Application.

Sequence contains more than one element

Description: An unhandled exception occurred.

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.Single(IEnumerable`1 source) +545
   HoraceMann.PublicSite.Business.Providers.AgentServiceProvider.GetAgentOffices(List`1 agentNumbers) in E:\Agents\1\_work\322\s\Source\HoraceMann.PublicSite.Business\Providers\AgentServiceProvider.cs:42
   HoraceMann.PublicSite.Business.Providers.AgentContentProvider.GetAgentOffices(Item item, List`1 agentNumbers, String primaryAgentNumber) in E:\Agents\1\_work\322\s\Source\HoraceMann.PublicSite.Business\Providers\AgentContentProvider.cs:124
   HoraceMann.PublicSite.Business.Providers.AgentContentProvider.BuildAgentContent(Item item, List`1 agentNumbers, String primaryAgentNumber) in E:\Agents\1\_work\322\s\Source\HoraceMann.PublicSite.Business\Providers\AgentContentProvider.cs:43
   HoraceMann.Areas.AgentWebPages.Controllers.AgentWebPageController.GetHomepageModel(Item item) in E:\Agents\1\_work\322\s\Source\HoraceMann.PublicSite.WebApplication\Areas\AgentWebPages\Controllers\AgentWebPageController.cs:122
   HoraceMann.Areas.AgentWebPages.Controllers.AgentWebPageController.SplitLayout() in E:\Agents\1\_work\322\s\Source\HoraceMann.PublicSite.WebApplication\Areas\AgentWebPages\Controllers\AgentWebPageController.cs:32
   lambda_method(Closure , ControllerBase , Object[] ) +87
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +280
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.<>c__DisplayClass13.<InvokeActionMethodWithFilters>b__10() +80
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +454
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +454
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +324