Hi, We are experiencing the same issue after updating to latest nuget version. Which version did you first experience this in and did you find a solution? Did you post a bug to episerver about this?
I will ask Commerce team to look into this. Thank you for bringing this into our attention
QA reported back that they can't reproduce the issue. Can you test a bit more and consolidate the reproduce steps?
We have the same issue!
When the site is restarted the values are null until the page is published again
[UIHint(EPiServer.Commerce.UIHint.CatalogEntry)]
[Display(GroupName = SiteTabs.Manadsgivare, Order = 110)]
public virtual ContentReference AutogiroProduct { get; set; }
[UIHint(EPiServer.Commerce.UIHint.CatalogEntry)]
[Display(GroupName = SiteTabs.Manadsgivare, Order = 110)]
public virtual ContentReference BecomeMemberProduct { get; set; }
My guess is Castle Core adds a suffix _DynamicProxy instead for Proxy on the EPiServer.Core.Content,
and the contentreference is pointing to commerce that is a complexreference with provider information.
Thats my guess..
It works When we add to web.config
<add key="episerver:setoption:EPiServer.Core.ContentOptions.ProxyType,EPiServer" value="Castle" />
Maybe add that key in the DXC settings to make sure it works
We have a page property which holds a catalog content:
[Display(
Name = "Root",
Description = "",
GroupName = CustomTabNames.SettingsTabs.Pages,
Order = 10)]
[UIHint(EPiServer.Commerce.UIHint.CatalogNode)]
public virtual ContentReference Catalog { get; set; }
Everything worked fine untill the latest update. From now, the property becomes a null after the site restarts. If I open the page in the edit mode, the property
seems like assigned, but If I read it from code, I am getting null. If I change something and republish the page, everything works fine until the next site restart. The same property placed inside of a block works as usual.
Other properties linked with cms content (pages, media) work fine.
What may be a reason the behavior?
The latest versions CMS, Find, Commerce, Personalization installed at the moment.