i have a person/group picker control in an infopath form , the person name is getting populated. what is the VSTA c# code to submit that person/group picker value to a sharepoint list
object JobOwner = MainDataSource.CreateNavigator().SelectSingleNode(
"/my:myFields/my:JobOwner", NamespaceManager).Value;
item["JobOwner"] = JobOwner;
but following exception is coming
Invalid data has been used to update the list item. The field you are trying to update may be read only.
thank you