.NETGURU
The "SendUsing" configuration value is invalid.
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-mail' list.


Torsten Schuster
hi gurus,
i'm using the following code to send a mail over the cdo:

private void SubmitBtn_Click(Object sender, EventArgs e) {
         
    string strMsg = "";
    MailMessage mail = new MailMessage();
    
    if (txtEMail.Text != "")
        mail.From = txtEMail.Text;
    else
        mail.From = "unknown";
                
    strMsg += "<b>From :</b> " + txtEMail.Text + "<br>";
    strMsg += "<b>Name :</b> " + txtName.Text + "<br>";
    mail.To = EMailAddress;
    mail.Subject = txtSubject.Text;
    strMsg += "<b>Subject :</b> " + txtSubject.Text + "<br>";
    mail.Body = txtBody.Text + "<br><br>" + "Name: " + txtName.Text + "<br>"
+ "Real EMail Address: " + Context.User.Identity.Name + "<br><br>" +
strServerVariables;
    strMsg += "<b>Message :</b> " + txtBody.Text + "<br>";
    mail.BodyFormat = MailFormat.Html;
    SmtpMail.Send(mail);
    Label2.Text = rm.GetString("Thank you for your message.");
    EditPanel.Visible = false;
    CreatedDate.Text = strMsg;    

}

and all is working fine on an original w2k all english. another box with
w2k but all german only the .net-v1.+sp1 is english will not work. the
cdo byself is able to send (checked with an job on the sql server). i
got the attached error from the system.
any hints guys?
:-) TS
Reply to this message...
 
    
Guha, Rahul
hi gurus,
i'm using the following code to send a mail over the cdo:

private void SubmitBtn_Click(Object sender, EventArgs e) {
         
    string strMsg = "";
    MailMessage mail = new MailMessage();
    
    if (txtEMail.Text != "")
        mail.From = txtEMail.Text;
    else
        mail.From = "unknown";
                
    strMsg += "<b>From :</b> " + txtEMail.Text + "<br>";
    strMsg += "<b>Name :</b> " + txtName.Text + "<br>";
    mail.To = EMailAddress;
    mail.Subject = txtSubject.Text;
    strMsg += "<b>Subject :</b> " + txtSubject.Text + "<br>";
    mail.Body = txtBody.Text + "<br><br>" + "Name: " + txtName.Text +
"<br>"
+ "Real EMail Address: " + Context.User.Identity.Name + "<br><br>" +
strServerVariables;
    strMsg += "<b>Message :</b> " + txtBody.Text + "<br>";
    mail.BodyFormat = MailFormat.Html;
    SmtpMail.Send(mail);
    Label2.Text = rm.GetString("Thank you for your message.");
    EditPanel.Visible = false;
    CreatedDate.Text = strMsg;    

}

and all is working fine on an original w2k all english. another box with
w2k but all german only the .net-v1.+sp1 is english will not work. the
cdo byself is able to send (checked with an job on the sql server). i
got the attached error from the system.
any hints guys?
:-) TS
Reply to this message...
 
    
Robert Corvus
hi gurus,
i'm using the following code to send a mail over the cdo:

private void SubmitBtn_Click(Object sender, EventArgs e) {
         
    string strMsg = "";
    MailMessage mail = new MailMessage();
    
    if (txtEMail.Text != "")
        mail.From = txtEMail.Text;
    else
        mail.From = "unknown";
                
    strMsg += "<b>From :</b> " + txtEMail.Text + "<br>";
    strMsg += "<b>Name :</b> " + txtName.Text + "<br>";
    mail.To = EMailAddress;
    mail.Subject = txtSubject.Text;
    strMsg += "<b>Subject :</b> " + txtSubject.Text + "<br>";
    mail.Body = txtBody.Text + "<br><br>" + "Name: " + txtName.Text
+ "<br>"
+ "Real EMail Address: " + Context.User.Identity.Name + "<br><br>" +
strServerVariables;
    strMsg += "<b>Message :</b> " + txtBody.Text + "<br>";
    mail.BodyFormat = MailFormat.Html;
    SmtpMail.Send(mail);
    Label2.Text = rm.GetString("Thank you for your message.");
    EditPanel.Visible = false;
    CreatedDate.Text = strMsg;    

}

and all is working fine on an original w2k all english. another box with

w2k but all german only the .net-v1.+sp1 is english will not work. the
cdo byself is able to send (checked with an job on the sql server). i
got the attached error from the system.
any hints guys?
:-) TS
Reply to this message...
 
    
Torsten Schuster
hi gurus,
i'm using the following code to send a mail over the cdo inside an
SendThoughts module :

private void SubmitBtn_Click(Object sender, EventArgs e) {

string strMsg = "";
MailMessage mail = new MailMessage();

if (txtEMail.Text != "")
mail.From = txtEMail.Text;
else
mail.From = "unknown";

strMsg += "<b>From :</b> " + txtEMail.Text + "<br>";
strMsg += "<b>Name :</b> " + txtName.Text + "<br>";
mail.To = EMailAddress;
mail.Subject = txtSubject.Text;
strMsg += "<b>Subject :</b> " + txtSubject.Text + "<br>";
mail.Body = txtBody.Text + "<br><br>" + "Name: " + txtName.Text +
"<br>" + "Real EMail Address: " + Context.User.Identity.Name +
"<br><br>" + strServerVariables;
strMsg += "<b>Message :</b> " + txtBody.Text + "<br>";
mail.BodyFormat = MailFormat.Html;
SmtpMail.Send(mail);
Label2.Text = rm.GetString("Thank you for your message.");
EditPanel.Visible = false;
CreatedDate.Text = strMsg;

}

and all is working fine on an original w2k all english.
another box with w2k but all german only the .net-v1.+sp1 is english
will not work.
the cdo as smtp host is running on localhost's same box and i have
cheked with completly open security options and resticted options.
i have checked also code like this:
..
SmtpMail.SmptServer = "localhost";
SmtpMail.Send(mail);
..
the cdo byself is able to send (checked with an vb-job on the sql server
or in jscript with old ms asp style).
but in .net i got the attached error from the system, but how i have
access to the CdoSendUsing Enum from the cdo with my code..
any hints guys?
:-) TS

error page:
Server Error in '/asb' 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:

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.
]

[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
invokeAttr, Binder binder, Object target, Object[] args,
ParameterModifier[] modifiers, CultureInfo culture, String[]
namedParameters) +473
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String
methodName, Object[] args) +111
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1516
System.Web.Mail.SmtpMail.Send(MailMessage message) +49
ASPNetPortal.UserControls.SendThoughts.SubmitBtn_Click(Object
sender, EventArgs e)
System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +108

System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
System.Web.UI.Page.ProcessRequestMain() +1244

Version Information: Microsoft .NET Framework Version:1.0.3705.209;
ASP.NET Version:1.0.3705.0

Reply to this message...
 
 
System.Collections.Specialized.NameValueCollection
System.EventArgs
System.Globalization.CultureInfo
System.Reflection.BindingFlags
System.Reflection.ParameterModifier
System.Reflection.TargetInvocationException
System.Runtime.InteropServices.COMException
System.Runtime.Remoting.Contexts.Context
System.Web.HttpApplication
System.Web.HttpContext
System.Web.HttpException
System.Web.HttpUnhandledException
System.Web.Mail.MailFormat
System.Web.Mail.MailMessage
System.Web.Mail.SmtpMail
System.Web.UI.IPostBackEventHandler
System.Web.UI.Page
System.Web.UI.WebControls.LinkButton




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification