I have installed the Analytics package with Umbraco 7.1.6 and I'm getting an error when opening the Analytics tab.
The site uses Autofac is there something I need to register to get this plugin to work?
"Message":"An error has occurred.","ExceptionMessage":"Object
reference not set to an instance of an
object.","ExceptionType":"System.NullReferenceException","StackTrace":"
at
Umbraco.Web.Trees.ApplicationTreeExtensions.TryLoadFromControllerTree(ApplicationTree
appTree, String id, FormDataCollection formCollection,
HttpControllerContext controllerContext)\r\n at
Umbraco.Web.Trees.ApplicationTreeController.
Analytics not working
Hi
I have installed the Analytics package with Umbraco 7.1.6 and I'm getting an error when opening the Analytics tab.
The site uses Autofac is there something I need to register to get this plugin to work?
Found the solution:
Add this to your autofac setup:
builder.RegisterAssemblyTypes(typeof(Analytics.Controllers.AnalyticsTreeController).Assembly).Where(t => !t.IsAbstract && typeof(ApiController).IsAssignableFrom(t)).InstancePerMatchingLifetimeScope(AutofacWebApiDependencyResolver.ApiRequestTag);
Now Analytics is working with autofac.
is working on a reply...