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

Free Support Forum - aspose.com

VCard: Exception thrown when loading *.vcf File


i just tried to deal with some vcard files, which i saved from my MS Outlook 2010 contacts.

Everytime when the program tries to load a vcard, an exception “header doesn’t correspond to vCard format” is thrown. Even with an empty vcard, the dll doesn’t work.

It seems that Aspose.Email gets confused by the X-MS-CARDPICTURE attribute. If i remove the attribute from the VCF file everything works fine.

The big problem: Outlook include the X-MS-CARDPICTURE by default everytime an vcard is saved, even if the vcard hasn’t any picture at all.

===== Code =========

try {

VCardContact. vc = VCardContact.Load(SourceDocument.FileName);

}catch(Exception e) {

===== Code ================

.net 2.0 Runtime
MS Outlook 2010

Internal bugid#4345

Best regards, Martin

Hi Martin,

Thank you for bringing this to our knowledge.

I am able to reproduce the said exception with latest version of Aspose.Email for .NET v1.2.0. So I have logged it in our bug tracking system for the sake of correction. The Ticket Id for your reference is 32658.

We will keep you posted with updates on this.


The issues you have found earlier (filed as 32658) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.