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 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.
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!
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
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.
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)
Okay, have a look at this too http://our.umbraco.org/forum/getting-started/installing-umbraco/17577-Moved-my-Umbraco-installation-and-get-an-error-on-login
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
Your App_Data folder can be completely cleared out, so you might want to start there. :)
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... :)
what is the size of your umbraco config file?
Hi Charles,
It's just over 2MB - not a problem I wouldn't have thought?
Kenny
Nope it was because i have seen that error before and it was a corrupt file of 0 bytes :)
Ok I think the problem is when you have moved enviroments the start id has been changed from a 0 to a 1
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 :)
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
Hmmm those values look fine. I am guessing it is going to be something to do with the StartNode. I will take another look :)
is working on a reply...