Hi,

I'm trying to get NAnt running for a nightly build at work.

I've just downloaded 0.85 source, and compiled it myself, I've ended up with
C:\Temp\nant-0.85-src\nant-0.85\build\net-2.0.win32\nant-0.85-debug\bin

Which suggests to me that I've built it using .NET 2.0. It produced this too:

C:\Temp\nant\NAnt\bin

Which is all as expected (I was building as I want it built on 1.1 or
later, and that's where I told it to go) So far so good.

Then I copied the contents of c:\temp\nant\nant over to my 0.85 binary
install (C:\Program Files\nant\nant-0.85\bin) and re-ran my test build
script.

My test build script just tests MailLogger. I have a mail server which
requires authentication. I need to re-build a non 1.0 version to work
with it.

<?xml version="1.0"?>
<project name="Test" default="test">

    <property name="MailLogger.mailhost" value="194.62.100.150" />
    <property name="MailLogger.from" value="[EMAIL PROTECTED]" />
    <property name="MailLogger.failure.notify" value="true" />
    <property name="MailLogger.success.notify" value="true" />
    <property name="MailLogger.failure.to" value="[EMAIL PROTECTED]" />
    <property name="MailLogger.success.to" value="[EMAIL PROTECTED]" />
    <property name="MailLogger.failure.subject" value="Nightly build
failure !" />
    <property name="MailLogger.success.subject" value="Nightly build
successful" />
    <property name="MailLogger.smtp.username" value="michael.jervis" />
    <property name="MailLogger.smtp.password" value="password" />

    <target name="test">
      <echo message="Done." />
    </target>
</project>

C:\projects\build>nant -logger:NAnt.Core.MailLogger -buildfile:test.build
NAnt 0.85 (Build 0.85.2478.0; release; 14/10/2006)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/projects/build/test.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: test


test:

     [echo] Done.

BUILD SUCCEEDED

Total time: 0.2 seconds.

[MailLogger] MailLogger.smtp.username is not supported if NAnt is
built targeting .NET
 Framework 1.0.
[MailLogger] E-mail could not be sent!
System.Web.HttpException: The message could not be sent to the SMTP
server. The transp
ort error code was 0x80040217. The server response was not available
 ---> System.Reflection.TargetInvocationException: Exception has been
thrown by the ta
rget of an invocation. --->
System.Runtime.InteropServices.COMException (0x80040211):
The message could not be sent to the SMTP server. The transport error
code was 0x80040
217. The server response was not available

   --- End of inner exception stack trace ---
   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr, Object
 target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParamet
ers)
   at System.RuntimeType.InvokeMember(String name, BindingFlags
bindingFlags, Binder b
inder, Object target, Object[] providedArgs, ParameterModifier[]
modifiers, CultureInf
o culture, String[] namedParams)
   at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object
obj, String met
hodName, Object[] args)
   --- End of inner exception stack trace ---
   at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object
obj, String met
hodName, Object[] args)
   at System.Web.Mail.SmtpMail.CdoSysHelper.Send(MailMessage message)
   at System.Web.Mail.SmtpMail.Send(MailMessage message)
   at NAnt.Core.MailLogger.BuildFinished(Object sender, BuildEventArgs
e) in c:\Temp\n
ant-0.85-src\nant-0.85\src\NAnt.Core\Log.cs:line 970


Any suggestions?

My mail server settings are straight out of my outlook config...


-- 
Michael Jervis
[EMAIL PROTECTED]
504B03041400000008008F846431E3543A820800000006000000060000007765
62676F642B4F4D4ACF4F0100504B010214001400000008008F846431E3543A82
0800000006000000060000000000000000002000000000000000776562676F64
504B05060000000001000100340000002C0000000000

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to