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 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.
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.
@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?
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.
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.
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
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
Hmm - it just posted part of my message =)
May try setting the
in your web.config and also perhaps delete the contents of the App_Data/TEMP/PluginCache directory. Umbraco will just regenerate that.
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
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.
@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?
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
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?
Thanks
Hi Simon,
No I wasn't able to solve it, I ended up using uCommerce in the end.
Cheers
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
The same for 7.4.3.
Installed Umbraco, Merchello and Merchello.FastTrack from nuget into a new project.
Hi Attila,
You're experiencing the same issue as mine? What is exactly your error?
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.
Hi Attila,
I couldn't get Merchello working properly so I ended up using uCommerce.
Cheers
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?
Exactly.
Still not working :(
Same Error
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.
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.
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
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 ...
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:
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
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
Hi Rusty,
Any feedback on this please?
Kind Regards
Solved. Guided - https://our.umbraco.org/forum/using-umbraco-and-getting-started/76111-backoffice-getapplicationtree-api-call-throwing-error-after-setting-dependencyresolver-to-autofacdependencyresolver
is working on a reply...