A
Andrea Williams
I have been using this code for a while now and I haven't changed this code
for at least a couple weeks... I do not suspect the code. The error I'm
getting is the following:
Message: Could not access 'CDO.Message' object.
StackTrace: at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj,
String methodName, Object[] args)
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 DSI.CIS.UserRegister.btnSubmit_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\DSI\CIS\UserRegister.aspx.cs:line 524
TargetSite: System.Object CallMethod(System.Object, System.String,
System.Object[])
InnerException: 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 invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[] modifiers,
CultureInfo culture, String[] namedParameters)
at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String
methodName, Object[] args)
HelpLink:
The line of code that is failing is this:
System.Web.Mail.SmtpMail.Send(this.HomeOfficeEmail, oUser.Email,
oEmailMessage.Subject, oEmailMessage.Body);
I stepped through the code and all the values are correct so I can only
assume that something is wrong with .NET itself.
Any help would be appreciated!!!
Andrea
for at least a couple weeks... I do not suspect the code. The error I'm
getting is the following:
Message: Could not access 'CDO.Message' object.
StackTrace: at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj,
String methodName, Object[] args)
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 DSI.CIS.UserRegister.btnSubmit_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\DSI\CIS\UserRegister.aspx.cs:line 524
TargetSite: System.Object CallMethod(System.Object, System.String,
System.Object[])
InnerException: 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 invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[] modifiers,
CultureInfo culture, String[] namedParameters)
at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String
methodName, Object[] args)
HelpLink:
The line of code that is failing is this:
System.Web.Mail.SmtpMail.Send(this.HomeOfficeEmail, oUser.Email,
oEmailMessage.Subject, oEmailMessage.Body);
I stepped through the code and all the values are correct so I can only
assume that something is wrong with .NET itself.
Any help would be appreciated!!!
Andrea