This project has moved and is read-only. For the latest updates, please go here.

Carousel errors on page load


Sometimes on page load we get an error on the carousel. I reported it in the last version which you marked as fixed on the new release. It does not appear to be fixed.


DotNetNuke.Services.Exceptions.ModuleLoadException: An item with the same key has already been added. ---> System.ArgumentException: An item with the same key has already been added.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at PetaPoco.Mappers.RegisterInternal(Object typeOrAssembly, IMapper mapper)
at PetaPoco.Mappers.Register(Type type, IMapper mapper)
at DotNetNuke.Data.PetaPoco.PetaPocoDataContext.GetRepositoryT
at DnnC.Modules.BootstrapHelpers.Components.ItemController.GetItems(Int32 _moduleId)
at DnnC.Modules.BootstrapHelpers.Helpers.SetUpCarousel()
at DnnC.Modules.BootstrapHelpers.Helpers.Page_Load(Object sender, EventArgs e)
--- End of inner exception stack trace ---


gmBarlow wrote Oct 23, 2014 at 9:25 AM


I can't seem to duplicate this error, is there more sliders on the same page?

Is there duplicate sliders in the module?

Is there already a slider embedded in the skin you are using?


davemills77 wrote Oct 23, 2014 at 10:04 AM


It is the only carousel module on the page. It has 3 different slides. No other carousel items on the skin or page.

It seems to be on the first load when the site hasn't been used for a while. It doesn't always happen though. If it did it would be easier to troubleshoot I think.