Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Upgarde From Abp. V.1 To V.2.0.2 cause failure !!! Emergency #3211


User avatar
0
shaariii created

Dear support users, After upgrading my packages to version 2.0.2 , out project fails to run at application start and we have been getting a run time error ' item with the same key has already been added.'. Before upgrading we did not have such an error. The log file trace is :

DEBUG 2017-05-17 18:12:52,313 [1 ] Abp.Localization.LocalizationManager - Initializing 4 localization sources. DEBUG 2017-05-17 18:12:52,336 [1 ] Abp.Localization.LocalizationManager - Initialized localization source: Abp DEBUG 2017-05-17 18:12:52,336 [1 ] Abp.Localization.LocalizationManager - Initialized localization source: AbpWeb DEBUG 2017-05-17 18:12:52,347 [1 ] Abp.Localization.LocalizationManager - Initialized localization source: AbpZero DEBUG 2017-05-17 18:12:52,366 [1 ] Abp.Localization.LocalizationManager - Initialized localization source: TMS DEBUG 2017-05-17 18:12:52,451 [1 ] Abp.BackgroundJobs.BackgroundJobManager - Start background worker: Abp.BackgroundJobs.BackgroundJobManager DEBUG 2017-05-17 18:12:53,620 [1 ] Abp.Owin.OwinUserTokenProviderAccessor - DataProtectionProvider has not been set yet. FATAL 2017-05-17 18:12:53,744 [1 ] Abp.AbpBootstrapper - System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value) at System.Web.Mvc.ModelBinderDictionary.Add(Type key, IModelBinder value) at Abp.Web.Mvc.AbpWebMvcModule.PostInitialize() at Abp.Modules.AbpModuleManager.<>c.<StartModules>b__15_2(AbpModuleInfo module) at System.Collections.Generic.List1.ForEach(Action1 action) at Abp.Modules.AbpModuleManager.StartModules() at Abp.AbpBootstrapper.Initialize() System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value) at System.Web.Mvc.ModelBinderDictionary.Add(Type key, IModelBinder value) at Abp.Web.Mvc.AbpWebMvcModule.PostInitialize() at Abp.Modules.AbpModuleManager.<>c.<StartModules>b__15_2(AbpModuleInfo module) at System.Collections.Generic.List1.ForEach(Action1 action) at Abp.Modules.AbpModuleManager.StartModules() at Abp.AbpBootstrapper.Initialize()

The failure causes after base.Application_Start(sender, e);

I would be really appreciated if you could help us ASAP. we are in a trouble which we can not rollback to the previous version !


3 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi,

    Could you check this conversation? #3103@6dfdb5ca-d474-43ae-91f1-5d543caa1e76

  • User Avatar
    0
    shaariii created

    The error was due to using ChameleonForms package and in the latest updates it override the DateTime modelbinders and the same key has been added to the project. Follow this thread ... <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2132">https://github.com/aspnetboilerplate/as ... ssues/2132</a>

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @Shaariii :).