Sicos1977 / MSGReader

C# Outlook MSG file reader without the need for Outlook
http://sicos1977.github.io/MSGReader
MIT License
493 stars 168 forks source link

System.TypeInitializationException: 'The type initializer for 'MsgReader.Rtf.Font' threw an exception.' #401

Closed proskilly closed 6 months ago

proskilly commented 7 months ago

When I try to create a new Message object on a msg file that is based on a HTML email I get this error:

System.TypeInitializationException: 'The type initializer for 'MsgReader.Rtf.Font' threw an exception.'

ArgumentException: 'Windows-1252' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. Arg_ParamName_Name

Do you have any suggestions what I can do about it?

Sicos1977 commented 6 months ago

Are you using .net core?

proskilly commented 6 months ago

Yes .core 8. Although it doesn't matter anymore, I used Apose.Email and that parsed the email files. It was only a one time thing I needed it for.