Could not access 'CDO.Message' object

L

Lisa

I have 2 ASP.NET applications that I have developed locally on my PC.
The first one I developed when I had Windows 2000.

I recently upgraded my PC to Windows XP and developed a new ASP.NET
application.

When I run the old application the email method still works, but the
email method in my new application does not work and I get the error
"Could not access 'CDO.Message' object".

The tested the applications ensuring that the code in both
applications are the same for the email method:

SmtpMail.SmtpServer = ""
Dim objMailMessage As New MailMessage()
objMailMessage.BodyFormat = MailFormat.Html
objMailMessage.Priority = MailPriority.High
objMailMessage.From = "validEmailAddress"
objMailMessage.Subject = "Testing Email"
objMailMessage.Body = "Testing"
objMailMessage.To = "validEmailAddress"
SmtpMail.Send(objMailMessage)

I also created an email method in a new Console Application to test
and it worked. I thought that maybe it was permissions for the ASPNET
account, but then why would the old application still work?

I feel as though I have tried every suggestion that I have found in
these groups, but nothing seems to work. Please help!

I am using Framework 1.0
 
L

lisa.staples

I found out that this was occuring because McAfee was blocking the port
required to send email.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top