I am getting the following error:
The "SendUsing" configuration value is invalid.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.Runtime. InteropServices .COMException: The
"SendUsing" configuration value is invalid.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80040220): The "SendUsing" configuration value is
invalid.
]
[TargetInvocatio nException: Exception has been thrown by the target of
an invocation.]
System.RuntimeT ype.InvokeDispM ethod(String name, BindingFlags
invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers,
Int32 culture, String[] namedParameters ) +0
System.RuntimeT ype.InvokeMembe r(String name, BindingFlags
invokeAttr, Binder binder, Object target, Object[] args,
ParameterModifi er[] modifiers, CultureInfo culture, String[]
namedParameters ) +473
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +58
[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +113
System.Web.Mail .CdoSysHelper.S end(MailMessage message) +1846
System.Web.Mail .SmtpMail.Send( MailMessage message) +153
CAWAA.E.NeedHel p.btnSubmit_Cli ck(Object sender, EventArgs e) +580
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring
eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
+33
System.Web.UI.P age.ProcessRequ estMain() +1292
Here is the code:
Dim objMailMessage As New MailMessage
objMailMessage. BodyFormat = MailFormat.Html
objMailMessage. From = "blabla@bla .ca"
objMailMessage. Subject = "Form Title"
objMailMessage. Body = strMessage
If Len(strEmailFro m) > 0 Then
strEmailTo += ";" & strEmailFrom
End If
objMailMessage. To = strEmailTo
SmtpMail.SmtpSe rver = "127.0.0.1"
SmtpMail.Send(o bjMailMessage)
This works on our testing server which uses a network service, but it
does not work on our production server which does not. Any ideas? I
know about the FAQ site System.WEb.Mail , OH MY!, and we have tried all
of their suggestions and none of them work.
The "SendUsing" configuration value is invalid.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.Runtime. InteropServices .COMException: The
"SendUsing" configuration value is invalid.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80040220): The "SendUsing" configuration value is
invalid.
]
[TargetInvocatio nException: Exception has been thrown by the target of
an invocation.]
System.RuntimeT ype.InvokeDispM ethod(String name, BindingFlags
invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers,
Int32 culture, String[] namedParameters ) +0
System.RuntimeT ype.InvokeMembe r(String name, BindingFlags
invokeAttr, Binder binder, Object target, Object[] args,
ParameterModifi er[] modifiers, CultureInfo culture, String[]
namedParameters ) +473
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +58
[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +113
System.Web.Mail .CdoSysHelper.S end(MailMessage message) +1846
System.Web.Mail .SmtpMail.Send( MailMessage message) +153
CAWAA.E.NeedHel p.btnSubmit_Cli ck(Object sender, EventArgs e) +580
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring
eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
+33
System.Web.UI.P age.ProcessRequ estMain() +1292
Here is the code:
Dim objMailMessage As New MailMessage
objMailMessage. BodyFormat = MailFormat.Html
objMailMessage. From = "blabla@bla .ca"
objMailMessage. Subject = "Form Title"
objMailMessage. Body = strMessage
If Len(strEmailFro m) > 0 Then
strEmailTo += ";" & strEmailFrom
End If
objMailMessage. To = strEmailTo
SmtpMail.SmtpSe rver = "127.0.0.1"
SmtpMail.Send(o bjMailMessage)
This works on our testing server which uses a network service, but it
does not work on our production server which does not. Any ideas? I
know about the FAQ site System.WEb.Mail , OH MY!, and we have tried all
of their suggestions and none of them work.
Comment