Copied to clipboard

Flag this post as spam?

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


  • kerrie 27 posts 67 karma points
    Aug 13, 2012 @ 15:07
    kerrie
    0

    admin error

    I have logged into the umbraco admin and all of a sudden I am getting this error:

    [ArgumentNullException: Value cannot be null.
    Parameter name: source]
       System.Linq.Enumerable.SingleOrDefault(IEnumerable`1 source, Func`2 predicate) +4473142
       umbraco.BusinessLogic.User.GetApplications() +403
       umbraco.cms.presentation._umbraco.Page_Load(Object sender, EventArgs e) +64
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
       umbraco.BasePages.BasePage.OnLoad(EventArgs e) +19
       System.Web.UI.Control.LoadRecursive() +71
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064

     

    Any ideas?! As I cant access anything now in admin. :s  This has all been working fine also, just dont know what it can be.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Aug 13, 2012 @ 15:30
    Lee Kelleher
    0

    Hi Kerrie,

    Does anyone else have access to the back-office?  I haven't seen this error before, but at a guess, I would think that someone (somehow) has removed the section/application access rights for your user.

    If there are any other user accounts for the back-office, try logging in as them, see if the same error happens.

    Which version of Umbraco are you using?

    Thanks, Lee.

  • kerrie 27 posts 67 karma points
    Aug 13, 2012 @ 15:37
    kerrie
    0

    Hi Lee, thanks for your response

    I've never seen this before either, just dont understand it.  There is just me which is the admin user and then I have two other users but they only have access to content and media sections so they couldnt have accessed any user accounts.

    It is umbraco version 4.7.2

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Aug 13, 2012 @ 15:45
    Lee Kelleher
    0

    Hi Kerrie,

    How comfortable are you with looking into the database? (If not, are you able to find someone who can?)

    In your Umbraco database, take a look at the "umbracoUser2app" table data, see if your user account (if it's the root admin, then the ID should be zero) - make sure you have access to all the sections (e.g. "content", "media", "member", "settings", "developer" and "users")

    Good luck!

    Cheers, Lee.

  • kerrie 27 posts 67 karma points
    Aug 13, 2012 @ 16:37
    kerrie
    0

    Just checked the database and there I have access to content, developer, media, member, settings and users.  There shouldnt be any more listed on that table should there?

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Aug 13, 2012 @ 16:59
    Lee Kelleher
    0

    Yes, those are the correct ones.  Not sure what the problem might be, can the 2 other users log in okay?

  • kerrie 27 posts 67 karma points
    Aug 13, 2012 @ 17:04
    kerrie
    0

    They cant log in either.  I have downloaded the live database and tried running it on an older version of the website that I had on my local computer and that seems to work fine, but just not sure where the error could possibly be, there must be some difference in the files somewhere.

  • Vadim 4 posts 25 karma points
    Sep 11, 2012 @ 18:56
    Vadim
    0

    I have the same problem:

    [ArgumentNullException: Value cannot be null. Parameter name: source] System.Linq.Enumerable.SingleOrDefault(IEnumerable`1 source, Func`2 predicate) +2715546 umbraco.BusinessLogic.User.GetApplications() +291 umbraco.cms.presentation._umbraco.Page_Load(Object sender, EventArgs e) +87 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) +91 umbraco.BasePages.BasePage.OnLoad(EventArgs e) +14 System.Web.UI.Control.LoadRecursive() +74 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

    Does anyone have a solution?

     

  • Vadim 4 posts 25 karma points
    Sep 12, 2012 @ 07:32
    Vadim
    1

    If fix the problem in my site.

    The problem was with the file "\config\ClientDependency.config"

    I replaced it with original file "ClientDependency.config" and it worked.

    The difference between the two files was that my file didn't had the tag "providers" instead there was some other tag.

    There were other differences between the files but they were small differences.

     

    Hope this helps those who encountered this problem.

  • Rob 43 posts 79 karma points
    Oct 23, 2015 @ 12:51
    Rob
    0

    I had the same issue. (ClientDependency.config was 0k in disk size) I found an old one, copied it in to the config directory and was up and running.

    Thanks

  • Michael Hyldsgaard 64 posts 124 karma points
    Sep 27, 2012 @ 14:14
    Michael Hyldsgaard
    0

    I have the same problem, but my ClientDependency.config file looks just fine. 

    I have tried to overwrite it too without any luck. Still no access to the backend.

    Any other suggestions?

  • kerrie 27 posts 67 karma points
    Sep 27, 2012 @ 14:59
    kerrie
    0

    I couldnt get mine to work at all, in the end I ditched that version and went for the lastest version of Umbraco, no problems since.

  • Michael Hyldsgaard 64 posts 124 karma points
    Sep 27, 2012 @ 15:34
    Michael Hyldsgaard
    12

    My problem occured after a server crash...

    The problem turned out to be the "applications.config" and "trees.config" was corrupted in the crash. After overwriting them with files from the backup everything was back to normal. *phew*

     

  • Janet Kirklen 102 posts 212 karma points
    Feb 23, 2013 @ 23:08
    Janet Kirklen
    2

    I also just had this same issue after a few files in an unrelated folder failed to FTP correct.y.  Both my /config/applications.cofig and /config/trees.config were corrupted.  Recopied these files and everything was back to nromal. 

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Apr 06, 2013 @ 22:53
    Anthony Dang
    0

    Michael you rock!

    I just had a crash too and this was exactly my problem. I thought I was going to have to nuke the whole db for a moment.

     

  • Shuchita 45 posts 154 karma points
    May 10, 2013 @ 12:45
    Shuchita
    0

    Thanks a lot Michael!

    I too had the same problem and your solution saved my project.

  • Andy Carlier 16 posts 74 karma points
    Oct 16, 2013 @ 14:51
    Andy Carlier
    0

    What a bizarre issue.  Another +1 for Michael's solution.

  • Andreas Björk 2 posts 22 karma points
    Nov 28, 2013 @ 13:44
    Andreas Björk
    0

    Really weird.

    Had zero-bytes applications.config and trees.config here too.

  • Chris Randle 85 posts 199 karma points c-trib
    Feb 06, 2014 @ 12:16
    Chris Randle
    0

    I started to get this same issue. Did you solve it? I cannot see the solution, or Michael's post for that matter... Am I missing something?

  • Andy Carlier 16 posts 74 karma points
    Feb 06, 2014 @ 12:30
    Andy Carlier
    0

    Hi Chris,

    There seem to be posts falling off the forum all over the place (like Michael's).  I think the issue was that some of the config files had got corrupted.  Check trees.config and applications.config for starters.

  • Tom Cowling 144 posts 343 karma points
    Nov 19, 2014 @ 14:37
    Tom Cowling
    0

    Those two files were fine on mine - I ended up replacing the whole config folder as I didn't change any of the settings from the defaults.

    Works okay for me now. Thanks for pointing in the right direction guys.

     

    Weirdly though, I didn't have a server crash. I just checked with our networking team and can't find any errors at all on the server. Is there any other reason this type of error would occur?

  • Flavio Spezi 129 posts 315 karma points
    Mar 09, 2015 @ 14:48
    Flavio Spezi
    0

    I was the same issue.

    I look that "Applications.config" and "Trees.config" was 0 byte length.
    I solved replacing files with the right version.

    The issue is generated by a "disk full" error in hosting server.

  • Nandoh 32 posts 104 karma points
    Feb 10, 2016 @ 23:34
    Nandoh
    0

    February 2016 and this still happens...most probably because of a "disk full" in the hosting server :)

    Additionally, I can say that even though /config/applications.config and /config/trees.config were both with 1KB (or more), I've opened them with notepad++ and they were all full of "NULL" symbols.

    Thanks Michael :)

  • Vadim 4 posts 25 karma points
    Feb 17, 2016 @ 13:52
    Vadim
    0

    This happens definitely because of disk full, It happened to many of my web sites and the disk was full.

    When the disk is full this 2 files content is erased

    • /config/applications.config
    • /config/trees.config

    To fix it just copy the original files from Umbraco vanilla (if you customize this file after copy costomize them again)

    This will fix the problem !

Please Sign in or register to post replies

Write your reply to:

Draft