I try to CRUD components in an ASP.NET MVC 4 project using Tridion Core Service
First, I read a configuration component :
var publicationData = client.Read("tcm:180-278202", new ReadOptions()) as ComponentData;
var componentData = new ComponentData
{
Content = publicationData.Content,
ComponentType = ComponentType.Normal,
Title = "random title",
Schema = new LinkToSchemaData { IdRef = "tcm:179-277976-8" },
LocationInfo = new LocationInfo { OrganizationalItem = new LinkToOrganizationalItem { IdRef = "tcm:179-109377-2" }},
Id = "tcm:0-0-0"
};
client.Save(componentData, new ReadOptions());
I get an error message on the Client.Save with the following message :
(translated from dutch) Unexpected stem? element : Content. Expected : uuid:1d939ee2-29e5-4a94-b378-5c6420d6d46f:Configuration
The uuid is the same except that there is no ":Configuration" at the end
Every suggestion is welcome.