We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Error in Creating Contact On Exchange Folder using EWS (C# .NET)

I am writing MapiContacts from OST file to contacts folder on Exchange Server.
my code is as
MapiMessage msg = ost.ExtractMessage(msgInfo);

MapiContact contact = (MapiContact)msg.ToMapiMessageItem();

string ContactUri = client.CreateContact(exfolder.Uri, contact);

client.MoveItem(ContactUri, mailboxInfo.ContactsUri);

client.ListContacts(mailboxInfo.ContactsUri);

but at the time of execution it shows an error

Invalid For Property
Please suggest me the way to create contact on Exchange Server using EWS

@ritadcc126,

I have worked with sample example given over this documentation link and observed no issue while adding contact. I hope the shared information will be helpful.