Hi, I working with a customer’s email (.eml file) and use “Aspose.Email” NuGet package, version=“24.8.0”, targetFramework=“net472”.
I can successfully create the MailMessage
instance via MailMessage.Load(EMailMessageFilePath);
but when I call MessageValidator.Validate(EMailMessageFilePath)
I get the NullReferenceException
with the following call stack:
Aspose.Email.dll!#=ze4T6vCdCS55Ath2T7c55kB5l6xi4j$6nnA==.#=ze4T6vCdCS55Ath2T7c55kB5l6xi4j$6nnA==(#=z9fiRr7nfmh7mrzCQVoujjihzWtH55HE__Q== #=zaRTr64o=) Unknown
Aspose.Email.dll!#=z9fiRr7nfmh7mrzCQVoujjihzWtH55HE__Q==.#=zqKWi7J4=(System.IO.Stream #=zVhu4sBU=) Unknown
Aspose.Email.dll!#=z9fiRr7nfmh7mrzCQVoujjihzWtH55HE__Q==.#=z9fiRr7nfmh7mrzCQVoujjihzWtH55HE__Q==(System.IO.Stream #=zVhu4sBU=, #=z8HyVVSA0Okoe$M2t25Y1YkUkwZSW #=zR8A6XPVeNCWkZ9geWA==) Unknown
Aspose.Email.dll!Aspose.Email.Tools.FileFormatUtil.#=zKr2lKUy7ixoF(System.IO.Stream #=zVhu4sBU=) Unknown
Aspose.Email.dll!Aspose.Email.Tools.FileFormatUtil.DetectFileFormat(System.IO.Stream stream) Unknown
Aspose.Email.dll!Aspose.Email.Tools.Verifications.MessageValidator.Validate(System.IO.Stream stream) Unknown
Aspose.Email.dll!Aspose.Email.Tools.Verifications.MessageValidator.Validate(string fileName) Unknown
TestLoadEMail.exe!TestLoadEMail.Program.Main(string[] args) Line 21 C#