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

Free Support Forum - aspose.com

Exception on Win2008 when converting EML to MSG

Hello Aspose-Team,

when converting an EML- to an MSG-file on a Windows 2008 Server, x64 SP 2 using the following C#-code (.NET 2.0):

Aspose.Network.Mail.MailMessage mMessage;

mMessage = Aspose.Network.Mail.MailMessage.Load(@“c:\temp\test.eml”, Aspose.Network.Mail.MessageFormat.Eml);
mMessage.PreserveOriginalDates = true;
mMessage.Save(@“c:\temp\test.msg”, Aspose.Network.Mail.MailMessageSaveType.OutlookMessageFormatUnicode);

i get the following exception:

Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.AccessViolationException: Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
bei Aspose.Network.xe8b0369f54f4b3bc.x9e757ec08ed2acc9(String x4a3f0a05c02f235f, StringBuilder xd07ce4b74c5774a7)
bei Aspose.Network.Mail.MailAddress.x71f01cf9212238a6()
bei Aspose.Network.Mail.MailAddress.get_Address()
bei Aspose.Network.Outlook.MapiMessage.x8aa29adc47c4a40f(MailMessage xa823fe9d20de84be, OutlookMessageFormat x5786461d089b10a0)
bei Aspose.Network.Outlook.MapiMessage.xbd009e166d602c7b(MailMessage x1f25abf5fb75e795, MapiMessage xa773d6b986f6bdbb, OutlookMessageFormat x5786461d089b10a0)
bei Aspose.Network.Outlook.MapiMessage.FromMailMessage(MailMessage message, OutlookMessageFormat format)
bei Aspose.Network.Mail.MailMessage.Save(String fileName, MailMessageSaveType savetype)
bei AsposeNetworkTest.Form1.button1_Click(Object sender, EventArgs e)
bei System.Windows.Forms.Control.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
bei System.Windows.Forms.Button.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Exception-message in english: System.AccessViolationException: Attempted to read or write protected
memory. This is often an indication that other memory is corrupt.

I’m using the newest version of Aspose.Network.dll (5.7.0.0).

Is this a known issue?

Thank you in advance for your help!

Best regards,
Eco

Hi Eco,


Thanks for your inquiry.

Could you please try to use the dlls from “x:…Aspose.Network install folder\bin\Aspose.Network.x64.zip”, if you intend to you use for 64 bit OS? I hope it would fix this issue.

I’ve overlooked this ZIP, sorry. With the assembly from the zip, the conversion works as expected.