I have a user who is getting the above exception message when attempting to run the UpdateFields method on a aspose.words.document. This document is generated primarily through using the InsertHtml method on the docbuilder object and getting the source Html from user input. I’ve removed all the Html except for that which generates the error and have come up with the simple link, iron
(source code is iron)
Any idea why this would be generating that error?
Thanks.
Laurie
FYI: The full error message is:
**Error: Index and length must refer to a location within the string.
Parameter name: length: at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at x6c95d9cf46ff5f25.x0d299f323d241756.x3b67e683e83cab62(String xe4115acdf4fbfccc, Int32 x961016a387451f05)
at x4adf554d20d941a6.x50e6e6d123fa4a35.x4469479613bec4d8(Node xda5bf54deb817e37)
at x4adf554d20d941a6.x50e6e6d123fa4a35.x699caa1974f95d1a(Node xda5bf54deb817e37)
at x4adf554d20d941a6.x50e6e6d123fa4a35.x21e4bd206d6231f8(Object xa860e35844c20ac7)
at x4adf554d20d941a6.x50e6e6d123fa4a35.xb5ef8a04e65b87e6(String x1f25abf5fb75e795, Object xa860e35844c20ac7)
at x59d6a4fc5007b7a4.x487cdc969fefe3d6.xf3a1cfbffa44728c()
at x59d6a4fc5007b7a4.x487cdc969fefe3d6.x47f176deff0d42e2()
at x59d6a4fc5007b7a4.xcde671c53995c411.xd9db07500873ae98(Document x3664041d21d73fdc, xdeb77ea37ad74c56 xdfde339da46db651)
at xfbd1009a0cbb9842.x2de8d443b21560d5.xa20689e5bf116840()
at xfbd1009a0cbb9842.xbf9ddf72e1283af9.x18dfca7c5fd2402f()
at xfbd1009a0cbb9842.xfedf115fd9c03862.xdd6cf0348a23f220(xcf417e2db4fe9ed3 xe00c282e1a49fcfb)
at xfbd1009a0cbb9842.xfedf115fd9c03862.x384c03e4298b53bf()
at Aspose.Words.Document.UpdateFields()
at user_PrintPlan.PrintBusinessPlan(Object sender, EventArgs e)