Bugs item #1985348, was opened at 2008-06-05 13:21 Message generated for change (Comment added) made by vlad59 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1985348&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Sebastien Lucas (vlad59) Assigned to: Nobody/Anonymous (nobody) Summary: MailLogger error on Mono / Linux Initial Comment: Hi, I tried to use MailLogger in my nightly nant script and I got the following message : [MailLogger] E-mail could not be sent! System.NullReferenceException: Object reference not set to an instance of an object at System.Web.Mail.MailMessageWrapper.get_Fields () [0x00000] at System.Web.Mail.SmtpClient.ReadFields (System.Web.Mail.MailMessageWrapper msg) [0x00000] at System.Web.Mail.SmtpClient.StartSend (System.Web.Mail.MailMessageWrapper msg) [0x00000] at System.Web.Mail.SmtpClient.Send (System.Web.Mail.MailMessageWrapper msg) [0x00000] at System.Web.Mail.SmtpMail.Send (System.Web.Mail.MailMessage message) [0x00000] at NAnt.Core.MailLogger.BuildFinished (System.Object sender, NAnt.Core.BuildEventArgs e) [0x00000] I'm running Debian Etch with NAnt 0.85 (I even tried to compile a fresh NAnt 0.85 myself and I got the same error) I tried with Mono 1.2.6 and 1.9.1 still the same error. Thanks in advance for your help ---------------------------------------------------------------------- >Comment By: Sebastien Lucas (vlad59) Date: 2008-06-05 15:27 Message: Logged In: YES user_id=434063 Originator: YES I found a fix and a workaround : Workaround : add that to your build script : <property name="MailLogger.smtp.password" value="" /> the default value must not be null. Fix : replace all #if (NET_1_1) by #if (NET_1_1 && !MONO) in the MailLogger class I can provide a patch if needed ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1985348&group_id=31650 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers