Hi,
When I loop through the user profiles in SharePoint 2010 ,I am getting the following error message and it failed because one of the user able to enter -> in the Profile description of the My site and at the same time we have some custom properties for each user profile as well.
SharePoint is unable to iterate UserProfiles.GetEnumerator() and this line is throwing the below error message.What is the best way to identify what all xml characters cannot be deserialized,in each sharepoint user profile.
There was an error deserializing the object of type System.Collections.Generic.List`1[[Microsoft.Office.Server.UserProfiles.Cache.UserData, Microsoft.Office.Server.UserProfiles, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c]]. '', hexadecimal
value 0x1A, is an invalid character. Line 1, position 4635..
Category Info: InvalidOperation: (Microsoft.Offic...ProfileManager]:ProfileEnumerator`1) [], RuntimeException
Error Location: unknown
Is there any way we can resolve this error?so that we can elminate in future.
Thanking you all in anticipation