I am encountering the following message when attempting to use/access the object that is created after using the Email.MailMessage.Load method:
The field or property: “Cc” for type: “Aspose.Email.MailMessage” differs only in letter casing from the field or property: “CC”. The type must be Common Language Specification (CLS) compliant.
The Load method appears to work, but I am unable to do anything with the object that is created. I am using PowerShell to access the Aspose libraries and the code that generates this issue is as follows:
$stream = [System.IO.MemoryStream]::new() $message = [Aspose.Email.MailMessage]::Load($msgFile); $message.Save( $stream, [Aspose.Email.MailMessageSaveType]::MHtmlFormat )
I also tried using MsgLoadOptions with the Load method, but I am still getting the same CLS compliance error.
Can anyone provide advice on how I can overcome this apparent CLS compliance issue?
Thanks and regards,