System.InvalidOperationException: There is an error in XML document

Recently we had client experiencing an ugly error when adding a list item, which the error appears to be System.InvalidOperationException: There is an error in XML document (1, 43). Done lots of checks, but just couldn’t figure out why this happened until we found out it’s due to Internet Explorer 9!

This happens when you use Internet Explorer 9 on Sharepoint list with a People Picker field. It will throw the error when you submit.

See the following articles:

http://social.msdn.microsoft.com/Forums/bs-Latn-BA/sharepoint2010general/thread/90b3835c-6754-4bb6-9fd4-b74f16f236ff

http://ddkonline.blogspot.com.au/2009/06/fix-there-is-error-in-xml-document-1-2.html

http://mirata.who3d.co.uk/sharepoint-2010-sp1-and-ie-9/

Categories: ASP.NET, C#
Tags: