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) +60
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +14594072
   System.Linq.Enumerable.ToDictionary(IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) +302
   DataSmit.WebAuctions.BLL.Services.Impl.SettingsService.GetTranslationsAsDictionary(String language) in C:\Users\OrhanTeke\source\repos\AE\WebAuction\WebAuctions.BLL\Services\Impl\SettingsService.cs:178
   Castle.Proxies.Invocations.ISettingsService_GetTranslationsAsDictionary.InvokeMethodOnTarget() +105
   Castle.DynamicProxy.AbstractInvocation.Proceed() +102
   DataSmit.WebAuctions.Shared.CachingInterceptor.Intercept(IInvocation invocation) in C:\Users\OrhanTeke\source\repos\AE\Shared.WebAuction\Main\CachingInterceptor.cs:82
   Castle.DynamicProxy.AbstractInvocation.Proceed() +206
   Castle.Proxies.ISettingsServiceProxy.GetTranslationsAsDictionary(String language) +168
   DataSmit.WebAuctions.Controllers.BaseController.Initialize(RequestContext requestContext) in C:\Users\OrhanTeke\source\repos\AE\WebAuction\Controllers\BaseController.cs:214
   System.Web.Mvc.Controller.BeginExecute(RequestContext requestContext, AsyncCallback callback, Object state) +282
   System.Web.Mvc.<>c.<BeginProcessRequest>b__20_0(AsyncCallback asyncCallback, Object asyncState, ProcessRequestState innerState) +99
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallBeginDelegate(AsyncCallback callback, Object callbackState) +73
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +163
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +544
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1128
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +220
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +134


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