Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Heather Floyd 610 posts 1032 karma points MVP 6x c-trib
    Aug 13, 2009 @ 02:41
    Heather Floyd
    0

    Install local package 'The given key was not present in the dictionary.' error

    *This post is a follow-up to my previous one:  http://our.umbraco.org/forum/developers/extending-umbraco/3507-Install-local-package---%27Could-not-upload-file%27-error *

    I have a package with all sorts of stuff (templates, doctypes, etc) which I developed locally. I want to load this package onto a brand-new production website. Both dev & production are umbraco v. 4.0.2.1. The production website doesn't have anything added to it yet. When I go to "Install local package", it uploads & unpacks fine, and then I click "Install" and I get this error:

    Server Error in '/' Application.

    The given key was not present in the dictionary.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [KeyNotFoundException: The given key was not present in the dictionary.]
    System.ThrowHelper.ThrowKeyNotFoundException() +28
    System.Collections.Generic.Dictionary`2.get_Item(TKey key) +2643520
    umbraco.cms.businesslogic.datatype.controls.Factory.GetNewObject(Guid DataEditorId) +41
    umbraco.cms.businesslogic.datatype.DataTypeDefinition.Import(XmlNode xmlData) +418
    umbraco.cms.businesslogic.packager.Installer.InstallBusinessLogic(Int32 packageId, String tempDir) +163
    umbraco.presentation.developer.packages.Installer.processInstall(String currentStep) +180
    umbraco.presentation.developer.packages.Installer.Page_Load(Object sender, EventArgs e) +334
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
    System.Web.UI.Control.OnLoad(EventArgs e) +99
    umbraco.BasePages.BasePage.OnLoad(EventArgs e) +15
    System.Web.UI.Control.LoadRecursive() +50
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

    The package is then partially installed:

    Installed:
    - Scripts
    - Files
    - Data Types
    - XSLT Files

    Not Installed:
    - Content Nodes
    - Stylesheets
    - Templates
    - Media Types / Document Types
    - Macros

    Does anyone know what might be causing this problem?

    Thanks,

    ~Heather

     

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Aug 13, 2009 @ 08:54
    Thomas Höhler
    0

    It seems to be the same problem as Ismail has: http://our.umbraco.org/forum/developers/extending-umbraco/3499-Custom-data-type-issue

    Did you try to recycle the application pool to read in all datatypes?

    Thomas

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Aug 13, 2009 @ 12:08
    Thomas Höhler
    101

    Did you see the solution from Ismail on the other thread?

    Thomas

  • Heather Floyd 610 posts 1032 karma points MVP 6x c-trib
    Aug 13, 2009 @ 17:15
    Heather Floyd
    0

    Thanks, Thomas,

    That helped. It turned out I had forgotten to include a bin/*.dll file in my package which was used by my custom Datatypes.  Adding that file to the package fixed it. :-)

    Thanks again!

    ~Heather

Please Sign in or register to post replies

Write your reply to:

Draft