P
Peter
MailMessage aMessage = new MailMessage();
aMessage.From = "(e-mail address removed)";
aMessage.To = "(e-mail address removed)";
aMessage.Cc = "";
aMessage.Bcc = "";
aMessage.Subject = "Test";
aMessage.Body = "Message";
SmtpMail.SmtpServer = "smtp.server.com";
SmtpMail.Send(aMessage);
I am getting the following error, but only on one Win2K computer, the same code works on other Win2K and XP machines. I have looked on internet and other people have the same problem, but no one has the solution.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80029C4A): Error loading type library/DLL.
--- 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.SmtpMail.Send(MailMessage message)
Thanks
Peter
aMessage.From = "(e-mail address removed)";
aMessage.To = "(e-mail address removed)";
aMessage.Cc = "";
aMessage.Bcc = "";
aMessage.Subject = "Test";
aMessage.Body = "Message";
SmtpMail.SmtpServer = "smtp.server.com";
SmtpMail.Send(aMessage);
I am getting the following error, but only on one Win2K computer, the same code works on other Win2K and XP machines. I have looked on internet and other people have the same problem, but no one has the solution.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80029C4A): Error loading type library/DLL.
--- 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.SmtpMail.Send(MailMessage message)
Thanks
Peter