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:
Please note that the CLS Compliance error appears to be being caused by the implementation of the Aspose.Email API itself, as it does not appear to be CLS compliant because it contains methods that reference properties that have character case variations in their names (e.g., ‘Cc’ vs ‘CC’).
Just wondering if there’s been any progress in resolving this issue?
I’ve been able to work around the issue to an extent by executing C# code directly within my PowerShell script, however, doing so is onerous as the PowerShell environment needs to be reset after each change to the C# code. This reset is required because the C# assembly that is created using the Add-Type commandlet cannot be modified and reloaded into, or unloaded from, the System.AppDomain.
An issue with ID EMAILNET-39500 has already been added in our issue tracking system as investigation to further investigate the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.