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 531 posts 787 karma points MVP 2x c-trib
    Aug 13, 2009 @ 00:05
    Heather Floyd
    0

    Install local package - 'Could not upload file' error

    Hi,

    I am having trouble with a package I have created. Specifically, I have made a fairly extensive "basic" site on my local dev machine, and want to put it up on a hosted server. Both sites are running umbraco v. 4.0.2.1. The "production" site is completely empty. When I go to the developer section in the production site and "Install local package", I get an error after browsing to my local package file:

    Could not upload file
    System.Exception: Error unpacking extension... ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at umbraco.cms.businesslogic.packager.Installer.getFileName(String path, String fileName) at umbraco.cms.businesslogic.packager.Installer.LoadConfig(String tempDir) at umbraco.cms.businesslogic.packager.Installer.Import(String InputFile) --- End of inner exception stack trace --- at umbraco.cms.businesslogic.packager.Installer.Import(String InputFile) at umbraco.presentation.developer.packages.Installer.uploadFile(Object sender, EventArgs e)

    I thought it might be a size issue, so I reduced the package size (by removing the "media" directory from the package files sections) and set the web.config to accept a 20MB max file size. (The current package is now 936 KB.) But I still get the same error.

    When I use an FTP program, I can see 3 GUID-named folders in the "data" folder, which contain the files from my package, so I know they are getting uploaded and at least unpacked...

    Does anyone have experience with this error or hav any ideas what might be causing the issue?

    Thanks!

    Heather

  • Heather Floyd 531 posts 787 karma points MVP 2x c-trib
    Aug 13, 2009 @ 02:43
    Heather Floyd
    1

    Okay - well, I figured out what file was causing the problem - In the "Included files" section, I was including a robots.txt file which is located at the root level. Not sure why this file caused the blow-up, but when I removed it I was able to get the package to upload. Now I have a new installation problem, which I have opened a new thread for:

    'the given key was not present in the dictionary'

    http://our.umbraco.org/forum/developers/extending-umbraco/3508-Install-local-package-%27The-given-key-was-not-present-in-the-dictionary%27-error

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies