[UIHint(SiteUIHints.ListArea)] [Display(Order = 40, GroupName = SystemTabNames.Content, Name = "Link items", Description = "Content area where link items can be placed.")] public virtual LinkItemCollection Items { get; set; }
But when I create a link item on DXC I get the following error message:
Could not save property, and it has been reverted. Please try again.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'EPiServer.Core.ContentReference' because the type requires a JSON string value to deserialize correctly. To fix this error either change the JSON to a JSON string value or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. Path '[0].text', line 1, position 9.
The thing is I don't get it on my local DEV machine, but I only get it on DXC. I redeployed my code to be sure the code on DXC is the same as the code on my development machine.
Hello,
I have a block with the following property:
[UIHint(SiteUIHints.ListArea)]
[Display(Order = 40, GroupName = SystemTabNames.Content, Name = "Link items",
Description = "Content area where link items can be placed.")]
public virtual LinkItemCollection Items { get; set; }
But when I create a link item on DXC I get the following error message:
Could not save property, and it has been reverted. Please try again.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'EPiServer.Core.ContentReference' because the type requires a JSON string value to deserialize correctly. To fix this error either change the JSON to a JSON string value or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. Path '[0].text', line 1, position 9.
The thing is I don't get it on my local DEV machine, but I only get it on DXC. I redeployed my code to be sure the code on DXC is the same as the code on my development machine.
Does anybody have a clue?