Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
So I was working on my website, when suddenly I noticed TeaCommerce stopped working:
System.ArgumentNullException: Value cannot be null.
Parameter name: context
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
at TeaCommerce.Umbraco.Application.Trees.StoreTree.CreateRootNode(XmlTreeNode& rootNode)
at umbraco.presentation.webservices.TreeDataService.LoadAppTrees(TreeRequestParams treeParams)
at umbraco.presentation.webservices.TreeDataService.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2013-07-16 16:55:07,403  INFO Umbraco.Core.PluginManager - [Thread 8] Starting resolution types of Umbraco.Core.Persistence.Mappers.BaseMapper
2013-07-16 16:55:07,427  INFO Umbraco.Core.PluginManager - [Thread 8] Completed resolution of types of Umbraco.Core.Persistence.Mappers.BaseMapper, found 17 (took 24ms)
Somehow the context for Autofac is null..
Could it be the TeaCommerce store picker property is missing from the Content Tree?
Well I first noticed the error was when I added a property to the root node ( which also has the store picker property ). I tried to edit the root node, and it gave me the error. So when I went to the tea commerce section, I got the same error..
I tried to uninstall/install tea commerce and I still have the same problem. So what I just did was I got the source code of yesterday and then it suddenly does work.. I didn't add that much code today.. except some functionality for bundling by adding System.web.optimization. I'm still not quite sure if this is the cause though.
Ok, so I removed my code and the dlls for System.Web.Optimization and now it's running fine again. Can someone from TeaCommerce clarify this behaviour? I'd really like to use bundling though.
Interesting. I 'm using Optimus for bundling/minification, it runs fine with TeaCommerce. But the root node thing. Could be something went wrong when publishing. Do you have a copy of the logs? Might be the error is in there.
I cannot give you an answer right away as I'm not the one that built the Tea Commerce core. Anders, who did build it, is traveling the US at the moment. I will have him answer as soon as posible!
@Merijn thanks for the suggestion for using Optimus, I'll try it out! @Rune thank, I'd gladly like to know :)
Installing optimus also breaks teacommerce, same error.. probably because of the same dlls ( System.web.optimization ) and WebGrease.dll
@Merijn - could you try and help - because if Optimus works for you - it should work for @Khai as well :)
If something goes wrong with some custom Autofac code then everything of the registration of Autofac code in TC will go wrong and it wont work. So try and look at the AppData/Logs files and see what the exception says - the stracktrace should give you a hint.
We had this on version Tea Commerce 2.2 but after talking through with Anders we updated to version 2.5 and the issues went away. He said it should be long gone after 2.4+
Careful when upgrading though, there are some breaking changes, check the release docs.
Hope that helps someone.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted