2

On Sitecore 10.1.1, I've got Sitecore Headless Services Server XP 18.0.0 rev. 00473 installed. According to documentation, that's the correct version. The package brings Sitecore.LayoutService.dll with version 7.1.0:

enter image description here

Now I'd like to extend the LayoutService API. I referenced the latest available Sitecore.LayoutService NuGet pachage which has version 10.1.0. But now, when I try to reach the data via API, I receive error:

2396 11:41:16 ERROR Exception during Layout Service RenderItem (configuration: jss, item: {A843B9EF-04E4-4631-A2F0-EE4C6F2277E7})
cm_1         | Exception: System.InvalidOperationException
cm_1         | Message: Could not find type 'Sitecore.LayoutService.Serialization.Pipelines.GetFieldSerializer.GetIntegerFieldSerializer, Sitecore.LayoutService'

I checked the assembly delivered via NuGet and the type is indeed missing there. The LayoutService assembly version is 7.0.0, not 7.1.0:

enter image description here

Am I missing smth? How do I reference the proper 7.1 version via NuGet?

1 Answer 1

2

I agree NuGet Packages for Layout Services are confusing here. But You need to use sc-packages - Sitecore.LayoutService 7.1.0 here.

PM> Install-Package Sitecore.LayoutService -Version 7.1.0 -Source https://sitecore.myget.org/F/sc-packages/api/v3/index.json

This is the correct version for you. You will find below details for dll -

enter image description here

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.