Server Error in '/' Application.

An item with the same key has already been added.

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.ArgumentException: An item with the same key has already been added.

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:


[ArgumentException: An item with the same key has already been added.]
   System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +56
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +13143720
   System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) +16
   MarocDataStore.Areas.ContentBlocks.RenderControllers.ContentBlockRenderFactory.Init() in H:\home\src\MarocDataStore\Store\Areas\ContentBlocks\RenderControllers\ContentBlockRenderFactory.cs:32
   MarocDataStore.Areas.ContentBlocks.RenderControllers.ContentBlockRenderFactory.get_Controllers() in H:\home\src\MarocDataStore\Store\Areas\ContentBlocks\RenderControllers\ContentBlockRenderFactory.cs:22
   MarocDataStore.Areas.ContentBlocks.RenderControllers.ContentBlockRenderFactory.GetRenderer(ContentBlock block, Boolean isAdmin) in H:\home\src\MarocDataStore\Store\Areas\ContentBlocks\RenderControllers\ContentBlockRenderFactory.cs:86
   System.Dynamic.UpdateDelegates.UpdateAndExecute3(CallSite site, T0 arg0, T1 arg1, T2 arg2) +733
   MarocDataStore.Areas.ContentBlocks.RenderControllers.ContentBlockRenderFactory.RenderBlock(ContentBlock block, MarocDataApplication app, Object viewBag) in H:\home\src\MarocDataStore\Store\Areas\ContentBlocks\RenderControllers\ContentBlockRenderFactory.cs:93
   System.Dynamic.UpdateDelegates.UpdateAndExecute4(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) +758
   MarocDataStore.code.TemplateEngine.TagHandlers.ContentColumn.RenderColumn(StringBuilder sb, String colId, MarocDataApplication app, Object viewBag) in H:\home\src\MarocDataStore\Store\code\TemplateEngine\TagHandlers\ContentColumn.cs:52
   CallSite.Target(Closure , CallSite , ContentColumn , StringBuilder , String , MarocDataApplication , Object ) +245
   MarocDataStore.code.TemplateEngine.TagHandlers.ContentColumn.Process(StringBuilder output, MarocDataApplication app, Object viewBag, ITagProvider tagProvider, ParsedTag tag, String innerContents) in H:\home\src\MarocDataStore\Store\code\TemplateEngine\TagHandlers\ContentColumn.cs:39
   CallSite.Target(Closure , CallSite , ITagHandler , StringBuilder , MarocDataApplication , Object , ITagProvider , ParsedTag , String ) +307
   MarocDataStore.code.TemplateEngine.Processor.ProcessTag(ParsedTag tag, Queue`1 contentTokens, StringBuilder sb) in H:\home\src\MarocDataStore\Store\code\TemplateEngine\Processor.cs:217
   MarocDataStore.code.TemplateEngine.Processor.ProcessTemplate(StringBuilder sb, Queue`1 tokens) in H:\home\src\MarocDataStore\Store\code\TemplateEngine\Processor.cs:159
   MarocDataStore.code.TemplateEngine.Processor.RenderForDisplay(StringBuilder sb, Queue`1 tokens) in H:\home\src\MarocDataStore\Store\code\TemplateEngine\Processor.cs:111
   MarocDataStore.code.TemplateEngine.Processor.RenderForDisplay(StringBuilder sb) in H:\home\src\MarocDataStore\Store\code\TemplateEngine\Processor.cs:106
   MarocDataStore.Controllers.ProductsController.Index(String slug) in H:\home\src\MarocDataStore\Store\Controllers\ProductsController.cs:54
   lambda_method(Closure , ControllerBase , Object[] ) +104
   System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +19
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +221
   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 _) +15
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +59
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33() +59
   System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +230
   System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +230
   System.Web.Mvc.Async.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult) +15
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +59
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +24
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +102
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +59
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +47
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +15
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +16
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +59
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +57
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +16
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +59
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +47
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +12
   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() +59
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +47
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +11
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9850961
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163


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