From: Hai-Ping K. C. <hk...@gm...> - 2006-08-20 00:48:02
|
Hi, I am still having problems with email. Does the mailhost have to run on port 25? Thanks. On 8/14/06, Ken (conker) <co...@gm...> wrote: > > Hi, > > > I seem to have everything working with CruiseControl.NET except for the > email publisher. I did see this note on the website. > > > > You may experience an exception that looks like this when the ccnet server > tries to send an email: > > System.Web.HttpException: Could not access 'CDO.Message' object. ---> > > System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> > > System.Runtime.InteropServices.COMException (0x80040213): The transport failed to connect to the server. > > This is likely due to not having CDO properly installed on the build > server. To fix this, make sure that you have some sort of email client > installed (Outlook Express is probably there by default). Outlook Express > doesn't actually initialise CDO until you actually open it, so try and use > the client to send an email just to verify that everything works. > > > > But the following exceptions are thrown even with Outlook open. I have > tried the following: > > 1. Turned Firewall OFF > > 2. Made sure the email from field is an address that exists on the mail > server > > 3. Tried specifying an ip for the mailhost. > > > I tried both gmail and yahoo smtp mail servers. Is is because they are on > different ports? Is there a way to specify the port? > > > What am I doing wrong? Below are the errors being logged. Thank you for > listening. > > > -Ken > > > > > > 8/13/2006 1:35:15 AM: [FreeFall:Error]: Publisher threw exception: > ThoughtWorks.CruiseControl.Core.CruiseControlException: EmailPublisher > exception: System.Web.HttpException: The transport failed to connect to > the server. > > ---> System.Reflection.TargetInvocationException: Exception has been > thrown by the target of an invocation. ---> > System.Runtime.InteropServices.COMException (0x80040213): The transport > failed to connect to the server. > > > > --- End of inner exception stack trace --- > > at System.RuntimeType.InvokeDispMethod(String name, BindingFlags > invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 > culture, String[] namedParameters) > > at System.RuntimeType.InvokeMember(String name, BindingFlags > bindingFlags, Binder binder, Object target, Object[] providedArgs, > ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) > > at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object > obj, String methodName, Object[] args) > > --- End of inner exception stack trace --- > > at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object > obj, String methodName, Object[] args) > > at System.Web.Mail.SmtpMail.CdoSysHelper.Send(MailMessage message) > > at System.Web.Mail.SmtpMail.Send(MailMessage message) > > at ThoughtWorks.CruiseControl.Core.Publishers.EmailGateway.Send(String > from, String to, String subject, String messageText) > > at > ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher.SendMessage(String > from, String to, String subject, String message) ---> > System.Web.HttpException: The transport failed to connect to the server. > > ---> System.Reflection.TargetInvocationException: Exception has been > thrown by the target of an invocation. ---> > System.Runtime.InteropServices.COMException (0x80040213): The transport > failed to connect to the server. > > > > --- End of inner exception stack trace --- > > at System.RuntimeType.InvokeDispMethod(String name, BindingFlags > invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 > culture, String[] namedParameters) > > at System.RuntimeType.InvokeMember(String name, BindingFlags > bindingFlags, Binder binder, Object target, Object[] providedArgs, > ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) > > at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object > obj, String methodName, Object[] args) > > --- End of inner exception stack trace --- > > at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object > obj, String methodName, Object[] args) > > at System.Web.Mail.SmtpMail.CdoSysHelper.Send(MailMessage message) > > at System.Web.Mail.SmtpMail.Send(MailMessage message) > > at ThoughtWorks.CruiseControl.Core.Publishers.EmailGateway.Send(String > from, String to, String subject, String messageText) > > at > ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher.SendMessage(String > from, String to, String subject, String message) > > --- End of inner exception stack trace --- > > at > ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher.SendMessage(String > from, String to, String subject, String message) > > at ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher.Run(IIntegrationResult > result) > > at ThoughtWorks.CruiseControl.Core.Project.PublishResults(IIntegrationResult > result) > |