Server Error in '/' Application.

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:


Line 14:         mail.BodyFormat = System.Web.Mail.MailFormat.Html;
Line 15:         mail.Body = "restarted";
Line 16:         System.Web.Mail.SmtpMail.Send(mail);
Line 17:     }
Line 18:     

Source File: c:\web\kbcafe.com\Global.asax    Line: 16

Stack Trace:


[COMException (0x80040220): The "SendUsing" configuration value is invalid.
]

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) +0
   System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) +436
   System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) +72

[HttpException (0x80004005): The "SendUsing" configuration value is invalid.
]
   System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) +119
   System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1955
   System.Web.Mail.SmtpMail.Send(MailMessage message) +131
   ASP.global_asax.Application_Start(Object sender, EventArgs e) in c:\web\kbcafe.com\Global.asax:16


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433