Server Error in '/' Application.

String reference not set to an instance of a String.
Parameter name: s

Description: An unhandled exception occurred.

Exception Details: System.ArgumentNullException: String reference not set to an instance of a String.
Parameter name: s

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:


[ArgumentNullException: String reference not set to an instance of a String.
Parameter name: s]
   System.Text.Encoding.GetBytes(String s) +12617749
   HoraceMann.CCC.Business.ExtensionMethods.ToQueryString(RouterResourceParameterList parameters) in c:\TFS\W3\HM.Marketing.CCC.Core\Main\Source\HoraceMann.CCC.Shared.Business\ExtensionMethods.cs:224
   HoraceMann.CCC.Business.RouterResource.get_Path() in c:\TFS\W3\HM.Marketing.CCC.Core\Main\Source\HoraceMann.CCC.Shared.Business\Router.cs:89
   HoraceMann.Areas.AgentWebPages.ViewDataMapping.<ToViewModel>b__6(AgentStaff s) in c:\TFS\HM.Marketing.PublicSite\Main\Source\HoraceMann.PublicSite.WebApplication\Areas\AgentWebPages\ViewDataMapping.cs:66
   System.Linq.WhereSelectListIterator`2.MoveNext() +232
   System.Linq.Buffer`1..ctor(IEnumerable`1 source) +488
   System.Linq.<GetEnumerator>d__0.MoveNext() +146
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +472
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +80
   HoraceMann.Areas.AgentWebPages.ViewDataMapping.ToViewModel(AgentOffice office) in c:\TFS\HM.Marketing.PublicSite\Main\Source\HoraceMann.PublicSite.WebApplication\Areas\AgentWebPages\ViewDataMapping.cs:38
   HoraceMann.Areas.AgentWebPages.Controllers.AgentWebPageController.GetBaseModel(AgentContent agentContent) in c:\TFS\HM.Marketing.PublicSite\Main\Source\HoraceMann.PublicSite.WebApplication\Areas\AgentWebPages\Controllers\AgentWebPageController.cs:97
   HoraceMann.Areas.AgentWebPages.Controllers.AgentWebPageController.GetHomepageModel(Item item) in c:\TFS\HM.Marketing.PublicSite\Main\Source\HoraceMann.PublicSite.WebApplication\Areas\AgentWebPages\Controllers\AgentWebPageController.cs:123
   HoraceMann.Areas.AgentWebPages.Controllers.AgentWebPageController.SplitLayout() in c:\TFS\HM.Marketing.PublicSite\Main\Source\HoraceMann.PublicSite.WebApplication\Areas\AgentWebPages\Controllers\AgentWebPageController.cs:32
   lambda_method(Closure , ControllerBase , Object[] ) +79
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +264
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +39
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +129
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +827930
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +827930
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +314
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +351