We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

MailMessage.Load works on one server but throws Exception on another

Running with a trial license on Aspose.Network v. 5.3

The following code works perfectly well on my development server but not on on our test server. Just using plain and simple messages (like the one attached):

public static void ConvertEmlToMsg(Stream emlStream, Stream outStream)

{

CheckLicense();

MailMessage emlMail = MailMessage.Load(emlStream, MessageFormat.Eml);

MapiMessage msg = MapiMessage.FromMailMessage(emlMail);

msg.Save(outStream);

}

The server that fails generates this stack trace:

w3wp.exe Error: 0 : (0)Exception message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
StackTrace: at Aspose.Network.xaa997bc5e2d4c177.x758a11e3a8250e35.x74f5a1ef3906e23c(Boolean x7eda911bc061cb14)
at Aspose.Network.xaa997bc5e2d4c177.x74f5a1ef3906e23c()
at Aspose.Network.xaa997bc5e2d4c177..ctor(Boolean parseEmbeddedMessages, Boolean parseInlineAttachments)
at Aspose.Network.xeef1ec6127bc8308..ctor(Stream mime, Boolean inferMime, xed8d243322e809ce decodingOptions, xd6ce284268fa2e80 mimeLimits, Boolean parseEmbeddedMessages, Boolean parseInline)
at Aspose.Network.xefc924b964a25846.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3)
at Aspose.Network.Mail.MailMessage.Load(Stream stream, MessageFormat format)
at SecondC.Esdh.Server.MessageConversion.MessageConverter.ConvertEmlToMsg(Stream emlStream, Stream outStream)

The only difference between servers (as I see it) is that the server that works has an Intel Xeon processor and the other server has an AMD Opteron processor.

Kind regards

Hi,


Thanks for considering Aspose.

Could you please try the latest version of Aspose.Network for .NET v5.3.1 from http://www.aspose.com/community/files/51/.net-components/aspose.network-for-.net/default.aspx. It should work will all kinds of CPU types and OS (x86/x64).

Thank you very much.

The new version has solved our problem.

Best regards