Hi,
I'm having some issues when I try to copy a text element from one page to another using the SmartAPI libraries (version 1.0.4) in the 11.2 version of the CMS.
These are some of the instructions I use, they are placed within a for loop to handle only certain elements:
var elementSrc = (IValueElement<string>)elt;
var elementDst = (IValueElement<string>)createdPage[elt.Name];
elementDst.Value = elementSrc.Value;
elementDst.Commit();
The error 413 occurs when I try to execute the commit instruction.
The text element contains a large amount of text, and I know I have to configure a parameter (MaxReceivedMessageSize) somewhere, or try to change it programmatically, but I'm not succeeding in doing so.
If anybody knows how to solve this, feel free to let me know.
Regards,
Bart