Hi,
When trying to send a request meeting through Aspose.Network, I have in my integration environment (64 bits) the following error :
Notes : I also send mail through Aspose and it works great, only have this issue with request meeting.
Notes bis : It works great on dev station on 32 bits environnments
Could you provide any fix ? As I mentioned i'm now using 5.4.0.4 version, at first we used 5.1 version but the error is still the same.
My customer (Top 5 french companies) uses licenses for Aspose.Total and he plans to push the application to production at the end of the mounth. Fixing this issue is critical for the application success.
Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at Aspose.Network.iCalendar.TimeZoneInfo.TryGetLocalizedNamesByRegistryKey(RegistryKey key, String& displayName, String& standardName, String& daylightName) at Aspose.Network.iCalendar.TimeZoneInfo.TryGetTimeZoneByRegistryKey(String id, TimeZoneInfo& value, Exception& e) at Aspose.Network.iCalendar.TimeZoneInfo.TryGetTimeZone(String id, Boolean dstDisabled, TimeZoneInfo& value, Exception& e) at Aspose.Network.iCalendar.TimeZoneInfo.GetLocalTimeZone() at Aspose.Network.iCalendar.TimeZoneInfo.get_Local() at Aspose.Network.Mail.Appointment.x2bb35897d41e4221(x178df0686591b1e1 x1306445c04667cc7, Int32 x2debfb396e7b8224) at Aspose.Network.Mail.Appointment.RequestApointment(Int32 sequenceId) at Aspose.Network.Mail.Appointment.RequestApointment() at
Environment detail :
Win2K3 64bits SP2
Aspose.Network 5.4.0.4
SharePoint 2007 SP2
Code :
public override void Send(SPWeb web)
{
System.Diagnostics.Debug.WriteLine("Class MeetingRequest - Method Send - Start");
//Retrieve SMTP
String smtpHost = Business.Common.ConfigurationManager.GetParameter(web, ConfigurationManager.ExchangeServer);
aspose.SmtpClient smtpC = new aspose.SmtpClient(smtpHost, 25);
aspose.MailMessage msg = new aspose.MailMessage();
//Sender address : Sharepoint
String spFrom = Business.Common.ConfigurationManager.GetParameter(web, ConfigurationManager.EmailFrom);
System.Diagnostics.Debug.WriteLine("Class MeetingRequest - Method Send - spFrom" + spFrom.ToString());
msg.From = new aspose.MailAddress(spFrom);
//Set the 'reply to' to the define user
if (string.IsNullOrEmpty(ReplyTo))
msg.ReplyTo = new aspose.MailAddress(spFrom);
else
msg.ReplyTo = new aspose.MailAddress(ReplyTo);
//Define the attendee of the message
foreach (String attendee in To)
{
if (!String.IsNullOrEmpty(attendee))
msg.To.Add(new aspose.MailAddress(attendee));
}
aspose.Appointment app = new aspose.Appointment(Location, StartDate, EndDate, msg.ReplyTo, msg.To);
msg.HtmlBody = "" + Body + "";
app.Description = msg.HtmlBody;
app.Summary = Subject;
msg.Subject = Subject.Replace("\r", "").Replace("\n", ""); ;
msg.AlternateViews.Add(app.RequestApointment());
smtpC.DeliveryMethod = aspose.SmtpDeliveryMethod.Network;
System.Diagnostics.Debug.WriteLine("Class MeetingRequest - Method Send - Before Send");
try
{
smtpC.Send(msg);
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine("Erreur : " + ex.ToString());
}
System.Diagnostics.Debug.WriteLine("Class MeetingRequest - Method Send - After Send");
Thanks !
Hugo PAIN