Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Re-installing ExtensionRe-installing Extension
Previous
 
Next
New Post
2/15/2012 3:54 PM
 

Using v6 locally, and I'm trying to delete, then reinstall an extension.  When I install the .zip file, I get:

"A critical error has occurred. An item with the same key has already been added."

I looked in the event viewer and here is the error, it doesn't look DB related.  I did a DB trace and tried to see if there was something I could manually delete from the database, but haven't figured it out.  I remember having this error a few versions ago and it was because the old module wasn't removed from the recycle bin, but I cleaned that out.

2/15/2012 3:46:11 PM Page Load Exception host DNN Test  AssemblyVersion 6.1.3 PortalID 0 PortalName DNN Test UserID 1 UserName hos 
AssemblyVersion: 6.1.3
PortalID: 0
PortalName: DNN Test
UserID: 1
UserName: host
ActiveTabID: 36
ActiveTabName: Extensions
RawURL: /sandbox/Host/Extensions/tabid/36/ctl/Install/rtab/36/portalid/0/Default.aspx?popUp=true
AbsoluteURL: /sandbox/Default.aspx
AbsoluteURLReferrer: http://localhost/sandbox/Host/Extensions/tabid/36/ctl/Install/rtab/36/portalid/0/Default.aspx?popUp=true
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: c9f2a844-fd78-4a2c-8739-c4b575f6bbba
InnerException: An item with the same key has already been added.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.ThrowHelper.ThrowArgumentException
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: An item with the same key has already been added. ---> System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) at DotNetNuke.Entities.Modules.Definitions.ModuleDefinitionInfo.ReadModuleControls(XmlReader reader) at DotNetNuke.Entities.Modules.Definitions.ModuleDefinitionInfo.ReadXml(XmlReader reader) at DotNetNuke.Entities.Modules.DesktopModuleInfo.ReadModuleDefinitions(XmlReader reader) at DotNetNuke.Entities.Modules.DesktopModuleInfo.ReadXml(XmlReader reader) at DotNetNuke.Common.Utilities.CBO.DeserializeObject[TObject](XmlReader reader) at DotNetNuke.Common.Utilities.CBO.DeserializeObject[TObject](TextReader reader) at DotNetNuke.Services.Installer.Installers.ModuleInstaller.ReadManifest(XPathNavigator manifestNav) at DotNetNuke.Services.Installer.Installers.InstallerFactory.GetInstaller(XPathNavigator manifestNav, PackageInfo package) at DotNetNuke.Services.Installer.Installers.PackageInstaller.ReadComponents(XPathNavigator manifestNav) at DotNetNuke.Services.Installer.Installers.PackageInstaller.ReadManifest(XPathNavigator manifestNav) at DotNetNuke.Services.Installer.Installer.ProcessPackages(XPathNavigator rootNav) at DotNetNuke.Services.Installer.Installer.ReadManifest(Stream stream) at DotNetNuke.Services.Installer.Installer.ReadManifest(Boolean deleteTemp) at DotNetNuke.Modules.Admin.Extensions.Install.wizInstall_NextButtonClick(Object sender, WizardNavigationEventArgs e) at System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---



 
New Post
2/15/2012 9:37 PM
 
My guess (without looking more closely at the installer code) is that there is still an entry for one of the module's user controls in the ModuleControls database table, though it could be an entry in the ModuleDefinitions table.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
2/17/2012 9:22 AM
 

Thank you for your reply.

I checked both tables but couldn't find a reference.  I tried to search all tables in the database, but couldn't find any other relevant entries for the name of the module I was trying to install.  Also rebooted the machine, no luck.

I'll keep digging.

 
New Post
2/17/2012 10:00 AM
 
I figured it out. I'm trying to add multiple View controls to the .dnn manifest.
 
New Post
9/20/2012 4:31 PM
 

I figured it out, too.

I was developing a module. The point was that I didn't set up in dnn file controlKey and controlTitle nodes with strings - I left them empty. In the table ModuleControls there exist columns ControlTitle and ControlKey. I guessed that DNN doesn't allow duplicate values in those columns - they have to be unique. I think it counts also when we try to insert NULL (empty string) into those columns - DNN won't let the rows with empty and not unique values of controlTitle and controlKey to be inserted. I wish DNN team would publish the DTD schema for dnn file.

All the best.

Bartosz


Regards rypki
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Re-installing ExtensionRe-installing Extension


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out