I also just did a DNN 4.9.4 to 5.1.2 upgrade. I got all successes on my log. But when I login as Host I get this same error.
DotNetNuke.Services.Exceptions.ModuleLoadException: An entry with the same key already exists. ---> System.ArgumentException: An entry with the same key already exists. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.SortedList`2.Add(TKey key, TValue value) at DotNetNuke.Entities.Modules.DesktopModuleController.GetPortalDesktopModules(Int32 portalID) at DotNetNuke.UI.ControlPanels.IconBar.BindData() at DotNetNuke.UI.ControlPanels.IconBar.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
I also had two versions of Google Analytics, but they had difference FriendlyNames (one had a space and the other didn't). Anyway, I totally deleted the module from the home page and went in and tried to uninstall, but it would recycle the page and both versions of the Analytics were there. So I went into the ModuleDefinitions table and deleted the rows there. Still cannot access any modules with their edit icon. I get
A critical error has occurred.
Input string was not in a correct format.
I checked and don't have any duplicates in my version table and there are no duplicates in the ModuleDef table.
Thanks for any help you can provide. Other than this the site seems to function well.