Stuck on this issue that my models seem to not be registered. All page content types are failing in this same way. I've regenerated the models, double checked the project and model naming are correct. The .web project appropriately references the .entities project that contains the models. I even deleted all pages and re-added them and still have the issue.
This project is set up exactly like 2 other functioning projects that don't have this issue. The only difference is this is on a slightly newer version on XbyK and running on .net10 as opposed to the other projects which are running on .net8.
Has anyone seen this issue before? Did something change from XbyK v30.12.1 to v31.0.2?
Environment
Xperience by Kentico version: [31.0.2]
.NET version: [10]
It bombs on line 15, here:
public async Task<IEnumerable<IWebPageFieldsSource>?> GetWebPageItemsAsync(IEnumerable<Guid>? guids)
{
if (guids is null)
{
return null;
}
var cacheDuration = cachingOptions.Value.DataCacheDurationInMinutes;
var cacheSettings = new RetrievalCacheSettings(
cacheItemNameSuffix: $"GetWebPageItemsAsync|WhereWebPageItemGUID|{string.Join("|", guids)}",
cacheExpiration: TimeSpan.FromMinutes(cacheDuration),
useSlidingExpiration: true);
IEnumerable<IWebPageFieldsSource> results = await contentRetriever.RetrieveAllPages<IWebPageFieldsSource>(
parameters: new RetrieveAllPagesParameters { LinkedItemsMaxLevel = 3 },
additionalQueryConfiguration: query =>
query.Where(where => where
.WhereIn(nameof(IWebPageFieldsSource.SystemFields.WebPageItemGUID), guids)),
cacheSettings: cacheSettings);
var resultDict = results.ToDictionary(
item => item.SystemFields.WebPageItemGUID,
item => item
);
var orderedResults = guids
.Where(guid => resultDict.ContainsKey(guid))
.Select(guid => resultDict[guid])
.ToList();
return orderedResults;
}