This project has moved. For the latest updates, please go here.
1
Vote

Carousel errors on page load

description

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.

ModuleControlSource:DesktopModules/DnnC_BootstrapHelpers/Helpers.ascx

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 ---

comments

gmBarlow wrote Oct 23, 2014 at 8:25 AM

Hi,

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?

Regards,
Geoff

davemills77 wrote Oct 23, 2014 at 9:04 AM

Hi,

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.

Regards,
Dave