Upgrade Umbraco 7 to Umbraco 8, Autofac is not working.
Hi Support,
I have upgraded Umbraco 7 latest version project to Umbraco 8.18.5 (latest).
Now I am getting issue with Dependency Container builder e.g.:
Boot failed: Umbraco cannot run. See Umbraco's log file for more details.
-> Umbraco.Core.Exceptions. BootFailed Exception: Boot failed.
-> System.Invalid Operation Exception: Build() or Update() can only be called once on a ContainerBuilder.
at Autofac.ContainerBuilder.Build(IComponentRegistry componentRegistry, Boolean exclude DefaultModules)
at Autofac.ContainerBuilder. Build(ContainerBuild Options options)
I think Umbraco 8 will not support Autofac because Umbraco 8 is using .Net Framework 4.7.2 and Autofac does not support 4.7.2 Framework.
Is there any alternate for Autofac in Umbraco 8?
Also I have checked LightInject is using Umbraco 8, so Is that alternate option for Umbraco 8?
Upgrade Umbraco 7 to Umbraco 8, Autofac is not working.
Hi Support,
I have upgraded Umbraco 7 latest version project to Umbraco 8.18.5 (latest). Now I am getting issue with Dependency Container builder e.g.:
I think Umbraco 8 will not support Autofac because Umbraco 8 is using .Net Framework 4.7.2 and Autofac does not support 4.7.2 Framework.
Is there any alternate for Autofac in Umbraco 8? Also I have checked LightInject is using Umbraco 8, so Is that alternate option for Umbraco 8?
Thank you.
Hi Shuchita
Umbraco 8 is already bundled with Lightinject so that could be a good option.
Any reason you are not upgrading to at least 10 (the latest LTS)?
Thanks Søren Kottal for the quick reply.
I will try to update dependency with LightInject.
Also, I will upgrade to Umbraco 10 later. Currently there are so many dependency for .Net Framework, that's why I am upgrading to Umbraco 8.
is working on a reply...