Copied to clipboard

Flag this post as spam?

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


  • Kenny Burns 173 posts 305 karma points
    Jul 11, 2014 @ 11:11
    Kenny Burns
    0

    Umbraco Login Error

    Hey guys,

    I have taken a copy of an Umbraco site and the database to use as a staging site - v 6.1.6 . I have wired everything up and the front end of the site is all working as expected but I can't seem to log in to Umbraco. For the life of me, I have tried everything, but no joy. The error I'm getting when trying to log in is:

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

     

    Anyone else come across this issue? Its definately connecting to the SQL db and I have checked all the user and user sections setup in the database and all looks fine. I'm wondering if its something in the app data folder - any help much appreciated! :)

    Thanks -

    Kenny

     

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Jul 11, 2014 @ 11:43
    Sebastiaan Janssen
    0

    I had a similar error yesterday, did you deploy umbraco.config as well? If so, delete it and recycle the app pool and see if that makes a difference.

  • Kenny Burns 173 posts 305 karma points
    Jul 11, 2014 @ 11:53
    Kenny Burns
    0

    Hi Sebastiaan,

    Tried that - still no luck. The full error message i'm getting is below:

    Exception information: 
        Exception type: ArgumentOutOfRangeException 
        Exception message: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
       at System.Collections.Generic.List`1.get_Item(Int32 index)
       at Umbraco.Web.UI.Umbraco.Umbraco.Page_Load(Object sender, EventArgs e)
       at Umbraco.Web.UI.Pages.BasePage.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Jul 11, 2014 @ 12:03
  • Kenny Burns 173 posts 305 karma points
    Jul 11, 2014 @ 12:25
    Kenny Burns
    0

    Thanks for helping Sebastiaan - I have tried that already.

    I also pointed my site at the live database and get the same error which makes me think its definately an app data issue or something similar i.e. files rather than db.

    I will keep at it and see if I can get anywhere - might have to re copy and start again, see if that works.

    Kenny

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Jul 11, 2014 @ 12:28
    Sebastiaan Janssen
    1

    Your App_Data folder can be completely cleared out, so you might want to start there. :)

  • Kenny Burns 173 posts 305 karma points
    Jul 11, 2014 @ 12:52
    Kenny Burns
    0

    Thanks! Okay...getting somewhere. Cleared out my temp folder and now getting a new error:

    Sequence contains more than one matching element


    And so the chase continues... :)

  • Charles Afford 1163 posts 1709 karma points
    Jul 11, 2014 @ 13:51
    Charles Afford
    0

    what is the size of your umbraco config file?

  • Kenny Burns 173 posts 305 karma points
    Jul 11, 2014 @ 14:43
    Kenny Burns
    0

    Hi Charles,

    It's just over 2MB - not a problem I wouldn't have thought?

    Kenny

  • Charles Afford 1163 posts 1709 karma points
    Jul 11, 2014 @ 14:45
    Charles Afford
    0

    Nope it was because i have seen that error before and it was a corrupt file of 0 bytes :)

  • Charles Afford 1163 posts 1709 karma points
    Jul 11, 2014 @ 14:50
    Charles Afford
    0

    Ok I think the problem is when you have moved enviroments the start id has been changed from a 0 to a 1

  • Charles Afford 1163 posts 1709 karma points
    Jul 11, 2014 @ 14:52
    Charles Afford
    0

    Could you run this query on the database 

    select * from umbracoNode where text = 'SYSTEM DATA: umbraco master root'

    What is the:

    Level

    ParentId

    Path 

    Trashed

    Values :)

     

  • Kenny Burns 173 posts 305 karma points
    Jul 11, 2014 @ 15:13
    Kenny Burns
    0

     

     

     

     

     

  • Kenny Burns 173 posts 305 karma points
    Jul 11, 2014 @ 15:15
    Kenny Burns
    0

    Thought it easier to post a screenshot :)

    The weird thing is, I keep flipping between the 2 errors - sometimes its giving me one error, others the 2nd error. I think i'm just going to start again!

    Kenny

  • Charles Afford 1163 posts 1709 karma points
    Jul 11, 2014 @ 15:17
    Charles Afford
    0

    Hmmm those values look fine.  I am guessing it is going to be something to do with the StartNode.  I will take another look :)

Please Sign in or register to post replies

Write your reply to:

Draft