Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

UserProfiles.GetEnumerator() throwing an error

$
0
0

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



Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>