Copied to clipboard

Flag this post as spam?

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


  • David Redmond 24 posts 76 karma points
    May 29, 2015 @ 08:48
    David Redmond
    0

    Failed to retrieve data for application tree merchello

    Hi All,

    I've installed Merchello 1.8.3 into Umbraco 7.2.5 and get this error when browsing to the Merchello admin area in back office. This Umbraco install is nearly blank, the only items created is a few document types and templates. Content created is just some place holder pages for Home Page, About Us, etc.

    Received an error from the server Failed to retrieve data for application tree merchello

    Object reference not set to an instance of an object.

    EXCEPTION DETAILS:

    System.NullReferenceException: Object reference not set to an instance of an object. STACKTRACE:

    at Umbraco.Web.Trees.ApplicationTreeExtensions.TryLoadFromControllerTree(ApplicationTree appTree, String id, FormDataCollection formCollection, HttpControllerContext controllerContext) at Umbraco.Web.Trees.ApplicationTreeController.

    This is a screenshot of the page in back office http://i.imgur.com/ouXlZOz.png Does anyone have any advice on where to go from here?

    Thanks in advance,

    David

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    May 29, 2015 @ 18:00
    Rusty Swayne
    0

    Hi David - I've not seen or heard of this one before. Were you installing Merchello.Core or one of the Bazaar starters?

    Maybe try setting the

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    May 29, 2015 @ 18:02
    Rusty Swayne
    0

    Hmm - it just posted part of my message =)

    May try setting the

     <compilation debug="true" 
    

    in your web.config and also perhaps delete the contents of the App_Data/TEMP/PluginCache directory. Umbraco will just regenerate that.

  • David Redmond 24 posts 76 karma points
    May 30, 2015 @ 01:10
    David Redmond
    0

    Hi Rusty,

    Thanks for your reply, apologies for my delayed response (I'm in Australia). The web.config setting for debug was already set to true and I've deleted the cache directory but no luck, the error still occurs. I installed Merchello from the Umrbaco package repository in back office.

    If it helps any, I'm running Umbraco in VS 2013 Update 4 and installed Umbraco from nuget. I'll get some time today to download Merchello from Github and add it into my solution so I can see if something in Merchello is throwing the error or if it's inside Umbraco.

    Cheers

  • David Redmond 24 posts 76 karma points
    May 30, 2015 @ 07:00
    David Redmond
    0

    Update - using Merchello source code and referencing those libraries still generates the error but no exception thrown in VS. I'm guessing it's because the exception occurs within Umbraco somewhere.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    May 30, 2015 @ 19:31
    Rusty Swayne
    0

    @David - in your web.config do you have a reference to the merchello section and then the merchello.config file? In the configuration file, we define the tree. Maybe something happened during the install and your web.config was not updated or the merchello.config file was not copied correctly?

  • David Redmond 24 posts 76 karma points
    May 31, 2015 @ 02:52
    David Redmond
    0

    Hi Rusty, 

    I created a new empty MVC project, installed UmbracoCMS from nuget, ran it to install a starter site and the installed Merchello from Umbraco repository and it all worked correctly.  I compared the Web.config & merchello.config from that install with my existing install, and they are identical (where Merchello matters - SQL conn strings are different).

    I wonder if I have a node created that shares a name Merchello uses internally?

    Edit: I moved all my root nodes into the single "Home Page" node (I have a Site Settings root node for example) and still no change with Merchello.

    Cheers

  • Simon 692 posts 1068 karma points
    Jul 27, 2016 @ 08:08
    Simon
    0

    Hi David,

    Have you solved this out? What did you do for preventing the error in the umbraco backoffice when click once on Merchello icon?

    enter image description here

    Thanks

  • David Redmond 24 posts 76 karma points
    Jul 27, 2016 @ 22:59
    David Redmond
    0

    Hi Simon,

    No I wasn't able to solve it, I ended up using uCommerce in the end.

    Cheers

  • Simon 692 posts 1068 karma points
    Jul 27, 2016 @ 07:42
    Simon
    0

    Hi Guys,

    Have you sorted this out, because I am experincing the same issue with the latest Merchello Version... on Umbraco 7.4.1.

    thank you

    Kind Regards

  • Attila Szász 3 posts 73 karma points
    Jul 27, 2016 @ 09:56
    Attila Szász
    0

    The same for 7.4.3.

    Installed Umbraco, Merchello and Merchello.FastTrack from nuget into a new project.

  • Simon 692 posts 1068 karma points
    Jul 27, 2016 @ 10:14
    Simon
    0

    Hi Attila,

    You're experiencing the same issue as mine? What is exactly your error?

  • Attila Szász 3 posts 73 karma points
    Jul 27, 2016 @ 10:50
    Attila Szász
    0

    The same as OP.

    I found that installing from nuget does not create all the files and the web.config entry correctly.

    However, you can install from package repository and then install the nuget package. This way Merchello works correctly.

  • David Redmond 24 posts 76 karma points
    Jul 27, 2016 @ 22:59
    David Redmond
    0

    Hi Attila,

    I couldn't get Merchello working properly so I ended up using uCommerce.

    Cheers

  • Simon 692 posts 1068 karma points
    Jul 27, 2016 @ 10:53
    Simon
    0

    So in order to work, you are saying to install normally the umbraco package and then install the Merchello.Core from nuget in order to work?

  • Attila Szász 3 posts 73 karma points
    Jul 27, 2016 @ 11:09
    Attila Szász
    0

    Exactly.

  • Simon 692 posts 1068 karma points
    Jul 27, 2016 @ 11:42
    Simon
    0

    Still not working :(

    Same Error

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 28, 2016 @ 03:21
    Rusty Swayne
    0

    Hey Simon,

    Are you saying that when you install Merchello from the package download it is not firing up?

    Can you make certain you have an App_Plugins/Merchello folder ...

    The screen shot above looks like the merchello.config file is not present.

  • Simon 692 posts 1068 karma points
    Jul 28, 2016 @ 06:44
    Simon
    0

    Hi Rusty,

    Thank you for your attention.

    Yes, for sure, I have the folder mentioned (App_Plugins/Merchello) and everything is fine, config file etc....because I have verified..

    BUT, I am suspecting that something from my global.Asax.cs is failing this, that in the backoffice, merchello is firing an error, as mentioned above.

    private ConcurrentBag<Assembly> loadAllAssembliesManual()
            {
                var casaSoftProjectAssemblies = new ConcurrentBag<Assembly>();
                casaSoftProjectAssemblies.Add(typeof(CS.Common.Services.ServiceAttribute).Assembly);
                casaSoftProjectAssemblies.Add(typeof(CS.Common.Umbraco.Services.Umbraco.Wrappers.IUmbracoHelperService).Assembly);
                casaSoftProjectAssemblies.Add(typeof(Ingredis.Code.Constants.ConstantValues).Assembly);
                casaSoftProjectAssemblies.Add(typeof(Ingredis.BundleConfig).Assembly);
    
                return casaSoftProjectAssemblies;
            }
    
            protected override void OnApplicationStarted(object sender, EventArgs e)
            {
                LogHelper.Warn<Global>("Enter On Application Started");
                AreaRegistration.RegisterAllAreas();
                BundleConfig.RegisterBundles(BundleTable.Bundles);
                RouteConfig.RegisterRoutes(RouteTable.Routes);
    
                // container.Register<IRenderMvcController, RenderMvcController>(Lifestyle.Transient);
                IocHelpers.Container.Register(() => new RenderMvcController(), Lifestyle.Scoped);
    
    
                CS.Common.SimpleInjectorMvc.SimpleInjectorMvcInitializer.
                    InitializeSimpleInjectorMvc(IocHelpers.Container,
                    loadAllAssembliesManual(),
                    logMessage);
    
                //register custom Data Annotation
                DataAnnotationsModelValidatorProvider.RegisterAdapter(typeof(RequiredIfAttribute),
                    typeof(RequiredAttributeAdapter));
    
                LogHelper.Warn<Global>("On Application Started - Initiliases SimpleInjectorMVCInitializer");
    
    
    
                base.OnApplicationStarted(sender, e);
    
    
            }
            public override string GetVaryByCustomString(HttpContext context, string custom)
            {
                if (custom.InvariantEquals("url"))
                {
                    return "url=" + context.Request.Url.AbsoluteUri;
                }
    
                return base.GetVaryByCustomString(context, custom);
            }
    

    The other sections in the backoffice are working.. but I can't figuring out why Merchello is not working.

    Can you help me sort this out please Rusty.

    Thank you in advance.

    Kind Regards

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 28, 2016 @ 23:59
    Rusty Swayne
    0

    Hmm - I'd have to see that in action to figure out whats going on

    Merchello starts bootstrapping in Umbraco's ApplicationStarting event:

    https://github.com/Merchello/Merchello/blob/merchello-dev/src/Merchello.Web/UmbracoApplicationEventHandler.cs#L88

    and then wires it's event handlers in the ApplicationStarted.

    The back office tree is here:

    https://github.com/Merchello/Merchello/blob/merchello-dev/src/Merchello.Web/Trees/ServerVariablesParsingEvents.cs#L41

    Interested to know what you figure out ...

  • Simon 692 posts 1068 karma points
    Jul 29, 2016 @ 07:01
    Simon
    0

    Hi Rusty, Thanks for your reply.

    I am currently testing and debugging the problem and figured out that one I removed the following line of code, it is working:

    DependencyResolver.SetResolver(new SimpleInjectorDependencyResolver(container));
    

    I am using the SimpleInjector, as you can see for Dependency injection.

    Any help will be much appreciated. In the meantime I will continue investigating it.

    Thanks Kind Regards

  • Simon 692 posts 1068 karma points
    Jul 29, 2016 @ 20:32
    Simon
    0

    Hi Rusty,

    Any help about this?

    There is something not working with Merchello when set the dependency resolver as a SimpleInjectorDepedencyResolover object.

    I tried even with an empty container, for testing.. but the same error.

    Appreciate any help.

    Kind regards

  • Simon 692 posts 1068 karma points
    Aug 01, 2016 @ 19:40
    Simon
    0

    Hi Rusty,

    Any feedback on this please?

    Kind Regards

  • Simon 692 posts 1068 karma points
    Aug 03, 2016 @ 10:55
Please Sign in or register to post replies

Write your reply to:

Draft