.NETGURU
cdo Message Object error
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-mail' list.


Guha, Rahul
-- Moved from [fastcode] to [ngfx-mail] by Charles M. Carroll <Click here to reveal e-mail address> --

I am in the process of building a mail component where I am trying to use
the SMTPMail object. But I am getting the error below.
System.Web.HttpException: Could not access 'CDO.Message' object. --->
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.

I made sure that SMTP service is running and I have CDO installed in the
server.
Is this familiar to anybody or what am I doing wrong ?

Reply to this message...
 
    
Erdi, Gabor

You might know this already, but what I have learned from this list the
other day is that you also have to refer to the SMTP server that you are
using:

private void Button1_Click(object sender, System.EventArgs e)
        {                
            MailMessage mail = new MailMessage();
            
            mail.From = "Click here to reveal e-mail address";
            mail.To    = "Click here to reveal e-mail address";
            mail.Subject = "New ad-hoc request was posted";
            mail.Body = "There is new ad-hoc request";
            mail.BodyFormat = MailFormat.Text;

            SmtpMail.SmtpServer = "localhost";
            
            SmtpMail.Send(mail);        

        }

-----Original Message-----
From: Guha, Rahul [mailto:Click here to reveal e-mail address]
Sent: 27 February 2002 00:08
To: ngfx-mail
Subject: [ngfx-mail] cdo Message Object error

-- Moved from [fastcode] to [ngfx-mail] by Charles M. Carroll
<Click here to reveal e-mail address> --

I am in the process of building a mail component where I am trying to use
the SMTPMail object. But I am getting the error below.
System.Web.HttpException: Could not access 'CDO.Message' object. --->
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.

I made sure that SMTP service is running and I have CDO installed in the
server.
Is this familiar to anybody or what am I doing wrong ?

| [ngfx-mail] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-mail.asp = JOIN/QUIT

Reply to this message...
 
    
Steve Shier
I am suddenly getting this same error even though I had working code before,
including the below mentioned smtp server reference. It suddenly broke and
I have tried the localhost as well as a working external email server.

TIA

Steve Shier
Managing Member, Senior Consultant
Kubera Consulting, LLC
641-472-0595
Click here to reveal e-mail address
http://www.kuberaconsulting.com

-----Original Message-----
From: Erdi, Gabor [mailto:Click here to reveal e-mail address]
Sent: Wednesday, February 27, 2002 2:58 AM
To: ngfx-mail
Subject: [ngfx-mail] cdo Message Object error

You might know this already, but what I have learned from this list the
other day is that you also have to refer to the SMTP server that you are
using:

private void Button1_Click(object sender, System.EventArgs e)
        {
            MailMessage mail = new MailMessage();

            mail.From = "Click here to reveal e-mail address";
            mail.To    = "Click here to reveal e-mail address";
            mail.Subject = "New ad-hoc request was posted";
            mail.Body = "There is new ad-hoc request";
            mail.BodyFormat = MailFormat.Text;

            SmtpMail.SmtpServer = "localhost";

            SmtpMail.Send(mail);

        }

-----Original Message-----
From: Guha, Rahul [mailto:Click here to reveal e-mail address]
Sent: 27 February 2002 00:08
To: ngfx-mail
Subject: [ngfx-mail] cdo Message Object error

-- Moved from [fastcode] to [ngfx-mail] by Charles M. Carroll
<Click here to reveal e-mail address> --

I am in the process of building a mail component where I am trying to use
the SMTPMail object. But I am getting the error below.
System.Web.HttpException: Could not access 'CDO.Message' object. --->
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.

I made sure that SMTP service is running and I have CDO installed in the
server.
Is this familiar to anybody or what am I doing wrong ?

| [ngfx-mail] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-mail.asp = JOIN/QUIT

| [ngfx-mail] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-mail.asp = JOIN/QUIT

Reply to this message...
 
 
System.EventArgs
System.Reflection.TargetInvocationException
System.Runtime.InteropServices.COMException
System.Web.HttpException
System.Web.Mail.MailFormat
System.Web.Mail.MailMessage
System.Web.Mail.SmtpMail




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