Hi Experts,
I require C# windows application to send email with attachment. I got the error like
ex.Message "Could not access 'CDO.Message' object."
ex.InnerException.Message "Exception has been thrown by the target of an invocation."
ex.InnerException.InnerExc
eption.Mes
sage "The transport failed to connect to the server.\r\n". Please help.
I am using Visual studio 2005, C#, backend is sql2005, Win xp
Entire Error message is
"Exception Occured: System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetIn
vocationEx
ception: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServ
ices.COMEx
ception (0x80040213): The transport failed to connect to the server. --- End of inner exception stack trace --- at System.RuntimeType.InvokeD
ispMethod(
String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeM
ember(Stri
ng name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) at System.Type.InvokeMember(S
tring name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args) at System.Web.Mail.LateBoundA
ccessHelpe
r.CallMeth
od(Type type, Object obj, String methodName, Object[] args) at System.Web.Mail.LateBoundA
ccessHelpe
r.CallMeth
od(Object obj, String methodName, Object[] args) --- End of inner exception stack trace --- at System.Web.Mail.LateBoundA
ccessHelpe
r.CallMeth
od(Object obj, String methodName, Object[] args) at System.Web.Mail.CdoSysHelp
er.Send(Ma
ilMessage message) at System.Web.Mail.SmtpMail.S
end(MailMe
ssage message) at TestingWeb1.Email_P2.btnSu
bmit_Click
(Object sender, EventArgs e) in c:\inetpub\wwwroot\testing
web1\email
_p2.aspx.c
s:line 75Your E-mail has been sent sucessfully "
Please help.
Advance Thanks,
Suresh
Start Free Trial