Server Error in '/' Application.

The given key was not present in the dictionary.

Description: An unhandled exception occurred.

Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

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:


[KeyNotFoundException: The given key was not present in the dictionary.]
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +13763335
   Ignition.Domain.Framework.Collections.RefreshingEntityCollection`1.get_Item(NetForumId id) +37

[IgnitionEntityNotFoundException: Entity with id af6099da-4388-446d-b4a3-4a13cabaf3b4 not found.]
   Ignition.Domain.Framework.Collections.RefreshingEntityCollection`1.get_Item(NetForumId id) +169
   ASNTWeb.Domain.Components.Store.AsntProductRepository.AddPrimaryProductToGroup(ProductGroup group) in c:\Users\Jason Mansfield\Documents\Source Control\ASNT\ASNTWeb\ASNTWeb.Domain\Components\Store\ASNTProductRepository.cs:144

[InvalidOperationException: Unable to find the Primary Product Group Product with key af6099da-4388-446d-b4a3-4a13cabaf3b4. Ensure that the sell online flag is set for this product.]
   ASNTWeb.Domain.Components.Store.AsntProductRepository.AddPrimaryProductToGroup(ProductGroup group) in c:\Users\Jason Mansfield\Documents\Source Control\ASNT\ASNTWeb\ASNTWeb.Domain\Components\Store\ASNTProductRepository.cs:149
   ASNTWeb.Domain.Components.Store.AsntProductRepository.GroupProducts(IEnumerable`1 productsToGroup) in c:\Users\Jason Mansfield\Documents\Source Control\ASNT\ASNTWeb\ASNTWeb.Domain\Components\Store\ASNTProductRepository.cs:132
   ASNTWeb.Domain.Components.Store.AsntProductRepository.GetProductsByCategoryCodeGrouped(String categoryCode) in c:\Users\Jason Mansfield\Documents\Source Control\ASNT\ASNTWeb\ASNTWeb.Domain\Components\Store\ASNTProductRepository.cs:64
   ASNTWeb.Web.Controllers.Store.StoreController.Browse(String category, Int32 page) in c:\Users\Jason Mansfield\Documents\Source Control\ASNT\ASNTWeb\ASNTWeb.Web\Controllers\Store\StoreController.cs:68
   lambda_method(Closure , ControllerBase , Object[] ) +194
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +268
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +77
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +432
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +432
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +329