Orchard-Core-Blazor-Sample icon indicating copy to clipboard operation
Orchard-Core-Blazor-Sample copied to clipboard

No service for type 'OrchardCore.Liquid.ILiquidTemplateManager'

Open win32nipuh opened this issue 5 years ago • 3 comments
trafficstars

I have run the sample once (VS2019). it worked, Then try to run the sample again (VS2019) but

InvalidOperationException: No service for type 'OrchardCore.Liquid.ILiquidTemplateManager' has been registered.

How to fix it?

win32nipuh avatar Apr 29 '20 13:04 win32nipuh

I think this is because this sample uses an old version of Orchard Core. What you should do is to upgrade it to the latest version. This means that you would need to fix a few breaking changes possibly. I might be able to work on the upgrade a few days later, but feel free to create a pull request if you actually do it sooner.

barthamark avatar Apr 29 '20 14:04 barthamark

Hi Mark, I have rebuilt the solution for ASP.NET Core 3.1, using the latest Nuget packages in all projects (I changed the Nuge source MyNuget->All). Finally it is built. But it does not help, during the run I receive the same exception: InvalidOperationException: No service for type 'OrchardCore.Liquid.ILiquidTemplateManager' has been registered. I hope on your upgrade ;-)

ZedZipDev avatar May 02 '20 09:05 ZedZipDev

Also, I have added Nuget package Orchard.Liquid to the main app. After it the exception disappeared, but "This site can’t be reached" appeared.

ZedZipDev avatar May 02 '20 10:05 ZedZipDev