Hi,
I try to use Mail Task for the first time on my
machine (running W2K server)
I got the following error:
----------------------------------------------------------
Error sending mail:
Error enountered while sending mail message. Make sure that mailhost=localhost is valid Exception has been thrown by the
target of an invocation.
Class not registered -------------------------------------------------------
Then, I tried MailLogger and got different error as
below?
-------------------------------------------------------
MailLogger failed to send
e-mail!
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040154): Class not registered --- 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 invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.CdoSysHelper.Send(String from, String to, String subject, String messageText) at System.Web.Mail.SmtpMail.Send(String from, String to, String subject, String messageText) at NAnt.Core.MailLogger.BuildFinished(Object sender, BuildEventArgs e) Press any key to continue . . . -------------------------------------------------------
It seems like to do with registration of Interop.
If so which dll I need to look into.
Thank you.
Regards,
Hadzramin
|