in

Dotnetpanel Forums

Community support forums for DotNetPanel products

An item with the same key has already been added

Last post 11-12-2007 5:40 AM by Nina. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 11-10-2007 5:18 AM

    • Nina
    • Top 200 Contributor
    • Joined on 10-11-2005
    • Melbourne
    • Posts 24

    An item with the same key has already been added

    Hi - I have looked very hard through the forums, and your support pages, but I can't work out why I broke my application.

    I copied one that I knew was working, and then I made changes to the application.xml within the folder and in the root folder and now I can't get it working any more. I put the new one in.

    I have to be honest, I've found this whole setup to be very discouraging and difficult - I thought I was smart, but the more I look into how it all works, the more discouraged I'm getting.

    Can someone please advise me on what I've done wrong.

    Thanks

    Nina 

    >>>> error  

    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> An item with the same key has already been added.
    at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[ parameters)
    at DotNetPanel.EnterpriseServer.esApplicationsInstaller.GetApplications(Int32 packageId, String categoryId)
    at DotNetPanel.Portal.AppInstallerHelpers.GetApplications(String categoryId)
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[ arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[ arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ parameters, CultureInfo culture)
    at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance)

    >>> 

    Give me a place to stand and a lever long enough, and I will move the world!
  • 11-10-2007 5:32 PM In reply to

    Re: An item with the same key has already been added

    You need to make sure that the application pack you created doesn't have the same ID as another application pack.

    <application
      id="b2evolution"

    Graham Spratt
    Direct Hosting UK
    DotNetPanel Authorized Reseller
    Windows and Linux Virtual Private Servers
    W2K3, IIS6, .NET, PHP5, MySQL5, MsSQL 2005
  • 11-10-2007 7:49 PM In reply to

    • Nina
    • Top 200 Contributor
    • Joined on 10-11-2005
    • Melbourne
    • Posts 24

    Re: An item with the same key has already been added

    Thanks very much for replying - that was my first thought too so I went back in and put the old xml file back  - and rechecked it. Even with the original XML file in place, it's not displaying any more.

    Here's my code - (not sure if it will successfully post but I'll try once)

    <?xml version="1.0" encoding="utf-8"?>
    <categories>
     <category id="NinasBuild">
      <name>Nina's Kynexis Builds</name>
      <applications>
       <application name="XD_Kynexis_Build" />
       <application name="XD_Kynexis_Catalook" />
       <application name="Kynexis"/>
      </applications>
     </category>
     <category id="ContentManagement">
      <name>Content Management Systems</name>
      <applications>
       <application name="DotNetNuke4" />
       <application name="FlexWiki" />
       <application name="Joomla" />
          <application name="Kbiki" />
      </applications>
     </category>
     <category id="CommunityPortals">
      <name>Community Portals</name>
      <applications>
       <application name="CommunityServer2007_20" />
       <application name="CommunityServer21_20" />
       <application name="CommunityServer21_10" />
       <application name="phpBB" />
      </applications>
     </category>
     <category id="BloggingSoftware">
      <name>Blogging Software</name>
      <applications>
       <application name="WordPress" />
       <application name="MyBlog" />
      </applications>
     </category>
     <category id="Resellers">
      <name>DotNetPanel Applications</name>
      <applications>
       <application name="DotNetPanelPortal" />
      </applications>
     </category>
     <category id="StarterKits20">
      <name>ASP.NET 2.0 Starter Kits</name>
      <applications>
       <application name="PersonalWebSite" />
       <application name="BeerHouseStarterKit" />
       <application name="ClassifiedsStarterKit" />
       <application name="ClubSiteStarterKit" />
       <application name="CommerceStarterKit2" />
       <application name="JobSiteStarterKit" />
       <application name="MediaLibraryStarterKit" />
       <application name="SmallBusinessSiteStarterKit" />
       <application name="TimeTrackerStarterKit20" />
      </applications>
     </category>
     <category id="StarterKits10">
      <name>ASP.NET 1.1 Starter Kits</name>
      <applications>
       <application name="CommerceCSSDK" />
       <application name="IssueTrackerCSSDK" />
       <application name="TimeTrackerCSSDK" />
      </applications>
     </category>
     <category id="PhotoAlbums">
      <name>Photo Albums</name>
      <applications>
       <application name="nGallery" />
      </applications>
     </category>
     <category id="DatabaseTools">
      <name>Database Tools</name>
      <applications>
       <application name="SqlWebAdmin" />
       <application name="phpMyAdmin" />
      </applications>
     </category>
    </categories>

    // edit  - by the way I meant to say I'm really impressed with what you've done with dnp - seeing how you've made it work so well is great //

    Give me a place to stand and a lever long enough, and I will move the world!
  • 11-11-2007 6:29 PM In reply to

    Re: An item with the same key has already been added

    So you added the following to C:\DotNetPanel\Enterprise Server\WebApplications\Applications.xml

     <category id="NinasBuild">
      <name>Nina's Kynexis Builds</name>
      <applications>
       <application name="XD_Kynexis_Build" />
       <application name="XD_Kynexis_Catalook" />
       <application name="Kynexis"/>
      </applications>
     </category>

    So in your Application.xml for Kynexis you should have something like this:

    <application
      id="Kynexis"
      codebase="Kynexis.zip"
      settingsControl="Kynexis.ascx">
    <name>Kynexis</name>
    <category>Nina's Kynexis Builds</category>

    Graham Spratt
    Direct Hosting UK
    DotNetPanel Authorized Reseller
    Windows and Linux Virtual Private Servers
    W2K3, IIS6, .NET, PHP5, MySQL5, MsSQL 2005
  • 11-12-2007 5:40 AM In reply to

    • Nina
    • Top 200 Contributor
    • Joined on 10-11-2005
    • Melbourne
    • Posts 24

    Re: An item with the same key has already been added

    *sigh* thank you thank you thank you - so close - but I see the error of my ways! I'm going to give it a crack now - It has a wizard which allows me to upload the file before proceeding - this will be used later on for the for upgrades which will be handled in patches rather than full installs. I'm excited to see if this works - I would like to learn more so I can get dasBlogs working as well.

     <?xml version="1.0" encoding="utf-8" ?>
    <application
      id="Kynexis47"
      codebase="Wizard.zip"
      settingsControl="Kynexis.ascx">
     <name>Kynexis 4.7 Build</name>
     <category>Ninas Kynexis Build</category>
     <shortDescription>Kynexis is a precompiled, commercial version of the DotNetNuke content management system ideal for creating and deploying
    commercial websites. Ideal for high traffic websites, features PageBlaster and CSS Nav menu for truly serious webhosting.</shortDescription>
     <fullDescription>Kynexis is a lightweight, clean and error free version of DotNetNuke designed for high performance websites with built for
    performance and speed. &lt;br/&gt;
    Kynexis is designed to make it easy for users to manage all aspects of their
    projects.  Site wizards, help icons, and a well-researched user interface allow
    universal ease-of-operation as well as a pure CSS based menu structure for lightweight fast pages, which are search engine friendly and easy to configure.
    </fullDescription>
     <logo>xdkynexis.gif</logo>
     <version>4.7</version>
     <size>.5</size> <!-- Mb -->
     <homeSite>http://www.kynexis.com</homeSite>
     <supportSite>http://www.kynexis.com</supportSite>
     <docSite>www.xd.com.au</docSite>
     <manufacturer>Snapsis Technology</manufacturer>
     <license>BSD</license>
     <requirements>
      <add group="Web" display="false"/>
      <add quota="Web.AspNet20"/>
      <add group="MsSQL2000|MsSQL2005"/>
     </requirements>
     <webSettings>
      <add name="AspNetInstalled" value="2"/>
      <add name="EnableWritePermissions" value="true"/>
     </webSettings>
    </application>

     

     I hope this is correct but I checked my errors and think it is.. Thanks so much for your help. Nina

    Give me a place to stand and a lever long enough, and I will move the world!
Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems