Hi all,

I am receiving  the following exception when i try to send a mail from a
console app in the production machine. the same app seems to work on my dev
machine.
i tried google and found some suggestions. they say , this problem is
because of permission, code issue, SMTP server name but all seem to be fine
as i verified them. I am using System.Web.Mail namespace instead of
System.Net.Mail. Posts also say to use the later but as i am working in
dotnet 1.1. I cant use System.Net.Mail.
Can anyone help me on this.

Referred Links:

http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_frm/thread/f2ef95e6fb1e0112?hl=en&lr&ie=UTF-8&oe=UTF8&newwindow=1&rnum=75&prev=%2Fgroups%3Fq%3Dcdo.message%2Bgroup%3Amicrosoft.public.dotnet.*%26num%3D50%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF8%26newwindow%253&pli=1

http://www.systemwebmail.com/faq/4.2.3.aspx

http://forums.asp.net/p/1212374/2144202.aspx#2144202

---------------------------------------------------------------------------------------------------------------
System.Web.HttpException: Unable to access the object 'CDO.Message'. --
-> System.Reflection.TargetInvocationException: Exception has been thrown in
the
stino of invocation. ---> System.Runtime.InteropServices.COMException
(0x8004
0220): Invalid configuration value "SendUsing.

   --- End of stack trace --- inner exception
   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,
Bind
er binder, Object target, Object [] args, ParameterModifier [] modifiers,
CultureI
nfo culture, String [] namedParameters)
   at System.Web.Mail.LateBoundAccessHelper.CallMethod (Object obj, String
method
Name, Object [] args)
   --- End of stack trace --- inner exception
   at System.Web.Mail.LateBoundAccessHelper.CallMethod (Object obj, String
method
Name, Object [] args)
   at System.Web.Mail.CdoSysHelper.Send (MailMessage message)
   at System.Web.Mail.SmtpMail.Send (MailMessage message)
   at MailTest.Class1.SendEmail ()
-------------------------------------------------------------------------------------------------------------------------

thanks
kiran

Reply via email to