Copied to clipboard

Flag this post as spam?

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


  • Peter Nielsen 159 posts 257 karma points
    Feb 20, 2011 @ 21:14
    Peter Nielsen
    0

    Moved my Umbraco installation and get an error on login

    Hi,

    I moved my Umbraco from one server to another. The front end works fine.. i can see all my pages (i get an Google API key error though, because I dont use the same domain anymore, but that is just an alert box)

    But when i go to loginpage and type in my user and pass, i get this error:

    Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index





    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.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index



    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:



    [ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index]
    System.Collections.Generic.List`1.get_Item(Int32 index) +12729036
    umbraco.cms.presentation._umbraco.Page_Load(Object sender, EventArgs e) +1493
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
    System.EventHandler.Invoke(Object sender, EventArgs e) +0
    umbraco.BasePages.BasePage.OnLoad(EventArgs e) +19
    System.Web.UI.Control.LoadRecursive() +71
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3048

     

    Does anyone know whats the problem? Its the latest Juno version, and it has been moved from Win server 2003 to 2008 :-)

    Thanks and regards

    Peter

  • Peter Nielsen 159 posts 257 karma points
    Feb 20, 2011 @ 22:17
    Peter Nielsen
    0

    I can see it has something to do when i Dumb my SQL file in Navicat and import it again via Navicat on the new server... it changes the start ID number from 0 to 1... Somebody who know how to prevent that problem? :-)

  • Peter Nielsen 159 posts 257 karma points
    Feb 23, 2011 @ 17:30
    Peter Nielsen
    2

    The problem was that my new database changed the id in the umrbacouser table from 0 to 1, and then i didnt have access to any of the sections in the umbracouser2app table. So a quick change from 1 to 0 and it all worked out :-)

  • Peter Nielsen 159 posts 257 karma points
    Feb 27, 2011 @ 22:14
    Peter Nielsen
    0

    If somebody else would make a comment on this one so I can mark as solved, that would be great :-)

  • Kim Andersen 1447 posts 2196 karma points MVP
    Feb 27, 2011 @ 22:19
    Kim Andersen
    0

    Like this? ;)

    Actually I think it's great that you have posted the answer even though you found it yourself. It's not everyone that would have shared their solution if they just found it themself. So thanks for sharing Peter.

    /Kim A

  • Peter Nielsen 159 posts 257 karma points
    Feb 27, 2011 @ 22:21
    Peter Nielsen
    1

    Off course.. Hate when I come to an unsolved thread myself :)

  • Paul Yates 32 posts 86 karma points
    Aug 01, 2011 @ 00:06
    Paul Yates
    0

    I just had this problem after moving my install from one database to another as well.  

    The root cause was actually because when i moved my database, i didn't run this SQL command along with the rest 

    SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

    So the fix was to start again only with this option set.  

    Worked for me anyway - might help someone sometime in the future....

    Paul

  • Tom T 2 posts 22 karma points
    Aug 01, 2011 @ 14:38
    Tom T
    0

    Thanks so much guys. Saved me a lot of time. Much appreciated.

  • Dennis M Dewey 15 posts 35 karma points
    Aug 29, 2012 @ 22:20
    Dennis M Dewey
    0

    Thanks for posting this. It saved my butt.

  • Luke Alderton 191 posts 508 karma points
    Mar 09, 2013 @ 01:03
    Luke Alderton
    0

    Had the same problem here, who would've thought it was so simple to fix.

Please Sign in or register to post replies

Write your reply to:

Draft