Re: Web.Mail Problems

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Bernie Yaeger (berniey_at_cherwellinc.com)
Date: 10/07/04


Date: Thu, 7 Oct 2004 07:25:57 -0400

Hi Dan,

You have 2 problems: my about box shows clearly vs .net 2003 and framework
1.1. Don't know what you did wrong, but you might want to reinstall 1.1 and
or vs into another drivespec.

CDO again - it drives me crazy, and frankly MS has to work on this, as it
can happen for too many reasons. I had a similar cdo problem and solved it
by googling it. On Google there are dozens of articles that can be found on
different possible reasons for this error.

HTH,

Bernie Yaeger

"DanB" <agentkc@kc.rr.com> wrote in message
news:OPWJBXFrEHA.2924@TK2MSFTNGP12.phx.gbl...
> When I try to send email using the System.Web.Mail namespace
>
> I get an exception of
>
> Could not Create CDO.message object.
>
> FYI - I worked for a long time with a similar exception of
> "Could not create CDO.message object". I think I resolved that by
> registering CDO.dll.
> I am running VB.NET 2002, Framework 1.0 (Even though I have installed
> Framework 1.1 - it still says I am running 1.0 when I pull up the IDE
> about box)
>
> This is the code attached to a button
>
> Dim mMail As SmtpMail
>
> 'mMail.SmtpServer = "smtp-server.kc.rr.com"
>
> mMail.SmtpServer = "localhost"
>
> 'mMail.SmtpServer = "127.0.0.1"
>
> Try
>
> mMail.Send("me@kc.rr.com", "metoo@kc.rr.com", "Test", "Test body")
>
> Catch ex As Exception
>
> MsgBox("The following exception occurred: " + ex.ToString())
>
> 'check the InnerException
>
> While Not (ex.InnerException Is Nothing)
>
> MsgBox("The following InnerException reported: " +
> ex.InnerException.ToString())
>
> ex = ex.InnerException
>
> End While
>
> End Try
>
>
> Anybody know my next step
>
>
>
>
>
>


Quantcast