07 Nov 2013
19 Dec 2013
Link to this post
My code looks something like:
DynamicContent dynamicContent = dynamicModuleManager.CreateDataItem(type);
dynamicModuleManager.SaveChanges(); // This throws an exception "Length cannot be less than zero. Parameter name: length"
I am migrating a lot of HTML content. Out of over 2500, only 1 triggers an exception. I looked at the HTML and there does not appear to be anything special. I'm guessing maybe the HTML is malformed. But why would Sitefinity try to do anything with the string I'm setting to my field called "Content"?
"Content" field is defined as "Long text" with a "Rich text editor" interface.