Hi I just installed Umbraco7 from nuget, open Umbraco and installed uCommerce, from the package repo. This was fine I looked a bit around and everything worked. Then I changed my Users login, created a document type and then a simple content node. I got a call and went for some coffee, got back and now uCommerce is broken?
Anyone know what might had happened?
Received an error from the server
Failed to retrieve data for application tree uCommerce
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 UCommerce.Umbraco7.Security.UmbracoUserService.GetUserInternal(String userName)
at UCommerce.Umbraco7.Security.UmbracoUserService.GetCurrentUser()
at UCommerce.Security.SecurityService.GetCurrentUser()
at UCommerce.Security.SecurityService.CurrentUserIsAdministrator()
at UCommerce.Security.SecurityService.ShouldAllowAlways()
at UCommerce.Security.SecurityService.UserIsInRole(Role role)
at UCommerce.Security.Default.SecurityExtensions.CanCreateProductCatalogGroup(ISecurityService securityService)
at UCommerce.Umbraco7.Menu.LoadCatalog.CreateRootNode(XmlTreeNode& rootNode)
at umbraco.cms.presentation.Trees.BaseTree.CreateRootNode()
at umbraco.cms.presentation.Trees.BaseTree.Initialize()
at umbraco.cms.presentation.Trees.BaseTree.get_RootNode()
at Umbraco.Web.Trees.ApplicationTreeExtensions.TryGetRootXmlNodeFromLegacyTree(ApplicationTree appTree, FormDataCollection formCollection, UrlHelper urlHelper)
at Umbraco.Web.Trees.ApplicationTreeExtensions.TryGetRootNodeFromLegacyTree(ApplicationTree appTree, FormDataCollection formCollection, UrlHelper urlHelper, String currentSection)
at Umbraco.Web.Trees.ApplicationTreeController.
I have tried to follow your steps.
1. Installing Umbraco7 from nuget
2. Open and install uCommerce
3. Looked around and edited the user login
4. Then went for some coffee (and wait for 15 minutes).
Unfortunately, I didn't managed to trigger the exception that you are.
I used umbraco 7.2.4 and uCommerce 6.6.3.
Therefore, I think that you have to try installing it again. To work through this problem.
uCommerce problem
Hi I just installed Umbraco7 from nuget, open Umbraco and installed uCommerce, from the package repo. This was fine I looked a bit around and everything worked. Then I changed my Users login, created a document type and then a simple content node. I got a call and went for some coffee, got back and now uCommerce is broken?
Anyone know what might had happened?
Received an error from the server Failed to retrieve data for application tree uCommerce
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 UCommerce.Umbraco7.Security.UmbracoUserService.GetUserInternal(String userName) at UCommerce.Umbraco7.Security.UmbracoUserService.GetCurrentUser() at UCommerce.Security.SecurityService.GetCurrentUser() at UCommerce.Security.SecurityService.CurrentUserIsAdministrator() at UCommerce.Security.SecurityService.ShouldAllowAlways() at UCommerce.Security.SecurityService.UserIsInRole(Role role) at UCommerce.Security.Default.SecurityExtensions.CanCreateProductCatalogGroup(ISecurityService securityService) at UCommerce.Umbraco7.Menu.LoadCatalog.CreateRootNode(XmlTreeNode& rootNode) at umbraco.cms.presentation.Trees.BaseTree.CreateRootNode() at umbraco.cms.presentation.Trees.BaseTree.Initialize() at umbraco.cms.presentation.Trees.BaseTree.get_RootNode() at Umbraco.Web.Trees.ApplicationTreeExtensions.TryGetRootXmlNodeFromLegacyTree(ApplicationTree appTree, FormDataCollection formCollection, UrlHelper urlHelper) at Umbraco.Web.Trees.ApplicationTreeExtensions.TryGetRootNodeFromLegacyTree(ApplicationTree appTree, FormDataCollection formCollection, UrlHelper urlHelper, String currentSection) at Umbraco.Web.Trees.ApplicationTreeController.
Hi Dennis,
I have tried to follow your steps. 1. Installing Umbraco7 from nuget 2. Open and install uCommerce 3. Looked around and edited the user login 4. Then went for some coffee (and wait for 15 minutes).
Unfortunately, I didn't managed to trigger the exception that you are.
I used umbraco 7.2.4 and uCommerce 6.6.3.
Therefore, I think that you have to try installing it again. To work through this problem.
__ Mads
Hopefully you've solved this issue by now. To whomever else may encounter this, read below:
I just had a very similar issue.
To resolve this - I simply had to log out and log back in.
is working on a reply...