Copied to clipboard

Flag this post as spam?

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


  • Mansoor Ahmad 16 posts 74 karma points
    Jun 30, 2015 @ 15:24
    Mansoor Ahmad
    0

    Could not load the Umbraco.Core.Configuration.

    I am using Umbraco version 6.2.1. Everything was working fine till yesterday and today when I opened the project I am getting the following exception

    Could not load the Umbraco.Core.Configuration.UmbracoSettings.IUmbracoSettingsSection from config file, ensure the web.config and umbracoSettings.config files are formatted correctly

    enter image description here

    How can I fix this?

  • Comment author was deleted

    Jun 30, 2015 @ 20:24

    Are you using source control? i.e. Git

  • Mansoor Ahmad 16 posts 74 karma points
    Jun 30, 2015 @ 20:28
    Mansoor Ahmad
    0

    Yes Kevin I am using Git.

  • Comment author was deleted

    Jun 30, 2015 @ 20:31

    You've probably already checked, but any changes recently? Or are there unstaged changes?

  • Comment author was deleted

    Jun 30, 2015 @ 20:31

    Guessing it's a single character giving you an issue in one of the files.

  • Mansoor Ahmad 16 posts 74 karma points
    Jun 30, 2015 @ 20:40
    Mansoor Ahmad
    0

    No there are no unstaged changes:(

  • Comment author was deleted

    Jun 30, 2015 @ 20:43

    You might wanna remove all sensitive info from the web.config/umbracosettings.config and run them through some XML validators. If that doesn't work, I got nothing :)

  • Mansoor Ahmad 16 posts 74 karma points
    Jun 30, 2015 @ 20:45
    Mansoor Ahmad
    0

    Ok, one more thing. Before the above mentioned error occurred I used

            var ms = Services.MemberService;
            ms.DeleteMembersOfType(1045); 
    

    to delete all the members of a specific type.

    After that following using statement

            using umbraco.presentation.cache;
    

    in my SurfaceController started giving "Cannot resolve symbol cache" error.

  • Nicholas Westby 2054 posts 7104 karma points c-trib
    Jun 30, 2015 @ 21:05
    Nicholas Westby
    0

    Shot in the dark: check to ensure your applications.config and trees.config didn't get emptied.

  • Mansoor Ahmad 16 posts 74 karma points
    Jun 30, 2015 @ 22:37
    Mansoor Ahmad
    0

    Kevin I validated both config files and there were no errors:(

    So as a lost resort I cloned the project from the main repository, build and the website started to work :)

    I then compared all the config files in working and non working versions but they are identical so I have no Idea what was the problem but atleast its working now. Git is good;)

  • Mansoor Ahmad 16 posts 74 karma points
    Jul 02, 2015 @ 13:02
    Mansoor Ahmad
    0

    The project version(which stopped working) was in my DropBox actually. In the bin folder I found some conflicted copies of the dlls. I replaced all the dlls in the not working version with the dlls in the the bin folder(the newly cloned/working version from the main repository). Things started working :)

    So was it my dropbox which screwed things up for me :) ?

  • 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