Could not access CDO.Message error
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngwebservices' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Sreedhar Koganti
<html><div style='background-color:'><P>Hi,</P>
<P>Is any one got "<FONT color=#ff0000>Could not access CDO.Message error</FONT>"</P>
<P>It's a simple Web Service. It will take Email Address and <BR>It sends Email. We installed it in production. When tested <BR>it with Web Service Test Page, We got the above error.</P>
<P>I would thik, It is some Sequrity permissions problem. <BR>It's unable to access cdo.message dll.</P>
<P>Any one is there to throw some light on it....</P>
<P><BR>Code:</P>
<P><BR><WebMethod()> Public Function SendEmail(ByVal EmailId As String) As String</P>
<P>        Dim MailObj As New MailMessage()<BR>        Try<BR>            MailObj.From = "<A href="mailto:Click here to reveal e-mail address">Click here to reveal e-mail address</A>"<BR>            MailObj.To = EmailId<BR>            MailObj.Subject = "WebService Mailer"<BR>            MailObj.Body = "This came from a Test WebService(For Sending Emails)... [From Unisys Mc-Lean]"<BR>            MailObj.BodyFormat = MailFormat.Text<BR>            SmtpMail.Send(MailObj)<BR>            SendEmail = "Email Send successfully."<BR>            Exit Try<BR>        Catch ex As Exception<BR>            SendEmail = "Failed To Send Email."<BR>            Exit Try<BR>        End Try</P>
<P><BR>    End Function</P>
<P>Includes --> Imports System.Web.Services<BR>Imports System.Web.Mail<BR>Imports System.Web.Util</P>
<P><BR>Sreedhar</P></div><br clear=all><hr>Join the world’s largest e-mail service with MSN Hotmail. <a href='http://g.msn.com/1HM103401/11'>Click Here</a><br></html>

Reply to this message...
 
    
Lakshmi
Are you giving the DNS Server IP address properly. This is a reason to this
error.

Lakshmi
-----Original Message-----
From: Sreedhar Koganti [mailto:Click here to reveal e-mail address]
Sent: Friday, March 08, 2002 9:41 AM
To: aspngwebservices
Subject: [aspngwebservices] Could not access CDO.Message error

Hi,

Is any one got "Could not access CDO.Message error"

It's a simple Web Service. It will take Email Address and
It sends Email. We installed it in production. When tested
it with Web Service Test Page, We got the above error.

I would thik, It is some Sequrity permissions problem.
It's unable to access cdo.message dll.

Any one is there to throw some light on it....

Code:

<WebMethod()> Public Function SendEmail(ByVal EmailId As String) As String

Dim MailObj As New MailMessage()
Try
MailObj.From = "Click here to reveal e-mail address"
MailObj.To = EmailId
MailObj.Subject = "WebService Mailer"
MailObj.Body = "This came from a Test WebService(For Sending
Emails)... [From Unisys Mc-Lean]"
MailObj.BodyFormat = MailFormat.Text
SmtpMail.Send(MailObj)
SendEmail = "Email Send successfully."
Exit Try
Catch ex As Exception
SendEmail = "Failed To Send Email."
Exit Try
End Try

End Function

Includes --> Imports System.Web.Services
Imports System.Web.Mail
Imports System.Web.Util

Sreedhar

----------------------------------------------------------------------------
--
Join the world’s largest e-mail service with MSN Hotmail. Click Here
| [aspngwebservices] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebservices.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
dave wanta (VIP)
This same discussion has been going on over at http://www.aspfriends.com/aspfriends/ngfx-mail.asp a week or two ago, and no one over there has been able to get it work. I was battling that problem for weeks, and I finally wrote my own SMTP component that doesn't use CDONTS.

wish I could help you more, but you may want to take this over to http://www.aspfriends.com/aspfriends/ngfx-mail.asp .

Cheers!
dave wanta
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.123aspx.com
The Largest ASP.NET Web Directory!
Find the latest ASP.NET resources --
Subscribe to our newsletter!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
----- Original Message -----
From: Sreedhar Koganti
To: aspngwebservices
Sent: Thursday, March 07, 2002 10:11 PM
Subject: [aspngwebservices] Could not access CDO.Message error

Hi,

Is any one got "Could not access CDO.Message error"

It's a simple Web Service. It will take Email Address and
It sends Email. We installed it in production. When tested
it with Web Service Test Page, We got the above error.

I would thik, It is some Sequrity permissions problem.
It's unable to access cdo.message dll.

Any one is there to throw some light on it....

Code:

<WebMethod()> Public Function SendEmail(ByVal EmailId As String) As String

Dim MailObj As New MailMessage()
Try
MailObj.From = "Click here to reveal e-mail address"
MailObj.To = EmailId
MailObj.Subject = "WebService Mailer"
MailObj.Body = "This came from a Test WebService(For Sending Emails)... [From Unisys Mc-Lean]"
MailObj.BodyFormat = MailFormat.Text
SmtpMail.Send(MailObj)
SendEmail = "Email Send successfully."
Exit Try
Catch ex As Exception
SendEmail = "Failed To Send Email."
Exit Try
End Try

End Function

Includes --> Imports System.Web.Services
Imports System.Web.Mail
Imports System.Web.Util

Sreedhar

------------------------------------------------------------------------------
Join the world's largest e-mail service with MSN Hotmail. Click Here
| [aspngwebservices] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebservices.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
Jason Salas
Try adding this line:

SmtpMail.SmtpServer = "localhost"

...before this line:
SmtpMail.Send(MailObj)

This is a new mandate for ASP.NET V1.

Jason
----- Original Message -----
From: Sreedhar Koganti
To: aspngwebservices
Sent: Friday, March 08, 2002 2:11 PM
Subject: [aspngwebservices] Could not access CDO.Message error

Hi,

Is any one got "Could not access CDO.Message error"

It's a simple Web Service. It will take Email Address and
It sends Email. We installed it in production. When tested
it with Web Service Test Page, We got the above error.

I would thik, It is some Sequrity permissions problem.
It's unable to access cdo.message dll.

Any one is there to throw some light on it....

Code:

<WebMethod()> Public Function SendEmail(ByVal EmailId As String) As String

Dim MailObj As New MailMessage()
Try
MailObj.From = "Click here to reveal e-mail address"
MailObj.To = EmailId
MailObj.Subject = "WebService Mailer"
MailObj.Body = "This came from a Test WebService(For Sending Emails)... [From Unisys Mc-Lean]"
MailObj.BodyFormat = MailFormat.Text
SmtpMail.Send(MailObj)
SendEmail = "Email Send successfully."
Exit Try
Catch ex As Exception
SendEmail = "Failed To Send Email."
Exit Try
End Try

End Function

Includes --> Imports System.Web.Services
Imports System.Web.Mail
Imports System.Web.Util

Sreedhar

------------------------------------------------------------------------------
Join the world's largest e-mail service with MSN Hotmail. Click Here
| [aspngwebservices] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebservices.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
duane warsham
(Type your message here)

--------------------------------
From: duane warsham

to use the mail object, you must get the server name for the network your on, like
'this needs to be the Smtp mail server, a proxy will not work, get this from your administrator, or Exchange server name in outlook
SmtpMail.SmtpServer = "Nt01" ' <= this is exchange server name in outlook

this may only help though if you are on a company LAN
Reply to this message...
 
    
duane warsham
(Type your message here)

--------------------------------
From: duane warsham

to use the mail object, you must get the server name for the network your on, like
'this needs to be the Smtp mail server, a proxy will not work, get this from your administrator, or Exchange server name in outlook
SmtpMail.SmtpServer = "Nt01" ' <= this is exchange server name in outlook

this may only help though if you are on a company LAN
Reply to this message...
 
 
System.Web.Mail.MailFormat
System.Web.Mail.MailMessage
System.Web.Mail.SmtpMail
System.Web.Services.WebService




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com