I am using netcoreapp3.1 and latest Aspose.Email package from nuget in my azure function project and when trying to load MailMessage.Load() I get below exception.
FileNotFoundException: Could not load file or assembly ‘System.Text.Encoding.CodePages, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. The system cannot find the file specified.
Hello @chudamani.khadka,
The FileNotFoundException for System.Text.Encoding.CodePages, Version=5.0.0.0 indicates that the required assembly for encoding is not present.
You may manually add the System.Text.Encoding.CodePages package to your project.
Hi, I did manually add the package. still I get this error.
image.png (37.7 KB)
image.png (6.6 KB)
@chudamani.khadka ,
This is a known issue with Azure Functions, not Aspose.Email.
Here are some links from other Azure Functions users who have also encountered this issue:
I hope the provided solutions will help.