473,804 Members | 4,408 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web.Mail Problems

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.SmtpServ er = "smtp-server.kc.rr.co m"

mMail.SmtpServe r = "localhost"

'mMail.SmtpServ er = "127.0.0.1"

Try

mMail.Send("me@ kc.rr.com", "me***@kc.rr.co m", "Test", "Test body")

Catch ex As Exception

MsgBox("The following exception occurred: " + ex.ToString())

'check the InnerException

While Not (ex.InnerExcept ion Is Nothing)

MsgBox("The following InnerException reported: " +
ex.InnerExcepti on.ToString())

ex = ex.InnerExcepti on

End While

End Try
Anybody know my next step


Nov 21 '05
12 1302
Nak
LOL, that's how most people get past this problem. Good luck with finding a
good 3rd party solution, if you find a nice free open source one written in
VB.NET let me know! :-)

Nick.

"DanB" <ag*****@kc.rr. com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hello,

Nope no office on this other than Frontpage.

I have decided to give up on CDO and go with a product from a 3rd
party.

Thanks to everyone for the ideas and help.

Dan
"Nak" <a@a.com> wrote in message
news:uv******** ******@TK2MSFTN GP10.phx.gbl...
Hi there,

It seems like there is so much confusion on this CDO thing, I
personally managed to get it working by installed the CDO objects from
the Microsoft Office XP CD, maybe that is weird, but it worked for me,
unless of course all it done was to re-register the DLL that you are
having troubles with.

Do you have Office installed at all? Maybe this can cause an issue,
I'm no expert in this matter, just having some guesses.

Nick.

"DanB" <ag*****@kc.rr. com> wrote in message
news:uz******** ******@TK2MSFTN GP10.phx.gbl...
Okay,

I think I can forget the framework 1.1 issue as the cause.

Yes I have IIS configured and running

I think CDOsys.dll is not registered correctly. But it won't
unregister by doing the regsvr32 /u command.

Maybe I am all wet here.

Dan

"Bernie Yaeger" <be*****@cherwe llinc.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi Dan,

Just a thought - is IIS configured and active on your pc?

Bernie
PS - re vs .net - I have 2002 and 2003 installed; I don't recall having
to do anything other than select the appropriate .exe when opening
either one. I can still open 2002 whenever I want (but I now never do).
"DanB" <ag*****@kc.rr. com> wrote in message
news:Ok******** *****@tk2msftng p13.phx.gbl...
> Thanks for the info Bernie.
>
> Even though I run VB.Net 2002 do you know should Visual Studio be
> 2003?
>
> I have just re-installed framework 1.1 and that did not fix it. I
> thought I read somewhere that you could have both 1.0 and 1.1
> installed but you must tell VB (or is it VS) which one to load. I
> don't know how to do that if that is the case.
>
> Do you think this has anything to do with the Web.Mail problem?
> Because I have googled this and I have found some of the information
> helpful. But nothing on point for this problem of the "Could not
> create CDO.message".
>
> "Bernie Yaeger" <be*****@cherwe llinc.com> wrote in message
> news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
>> 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" <ag*****@kc.rr. com> wrote in message
>> news:OP******** ******@TK2MSFTN GP12.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.SmtpServ er = "smtp-server.kc.rr.co m"
>>>
>>> mMail.SmtpServe r = "localhost"
>>>
>>> 'mMail.SmtpServ er = "127.0.0.1"
>>>
>>> Try
>>>
>>> mMail.Send("me@ kc.rr.com", "me***@kc.rr.co m", "Test", "Test body")
>>>
>>> Catch ex As Exception
>>>
>>> MsgBox("The following exception occurred: " + ex.ToString())
>>>
>>> 'check the InnerException
>>>
>>> While Not (ex.InnerExcept ion Is Nothing)
>>>
>>> MsgBox("The following InnerException reported: " +
>>> ex.InnerExcepti on.ToString())
>>>
>>> ex = ex.InnerExcepti on
>>>
>>> End While
>>>
>>> End Try
>>>
>>>
>>> Anybody know my next step
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>



Nov 21 '05 #11
Hi Dan,

Before you give up, review what Jay Harlowe said - I think he is on the
right track re cdonts v. cdo.dll.

Bernie

"DanB" <ag*****@kc.rr. com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hello,

Nope no office on this other than Frontpage.

I have decided to give up on CDO and go with a product from a 3rd
party.

Thanks to everyone for the ideas and help.

Dan
"Nak" <a@a.com> wrote in message
news:uv******** ******@TK2MSFTN GP10.phx.gbl...
Hi there,

It seems like there is so much confusion on this CDO thing, I
personally managed to get it working by installed the CDO objects from
the Microsoft Office XP CD, maybe that is weird, but it worked for me,
unless of course all it done was to re-register the DLL that you are
having troubles with.

Do you have Office installed at all? Maybe this can cause an issue,
I'm no expert in this matter, just having some guesses.

Nick.

"DanB" <ag*****@kc.rr. com> wrote in message
news:uz******** ******@TK2MSFTN GP10.phx.gbl...
Okay,

I think I can forget the framework 1.1 issue as the cause.

Yes I have IIS configured and running

I think CDOsys.dll is not registered correctly. But it won't
unregister by doing the regsvr32 /u command.

Maybe I am all wet here.

Dan

"Bernie Yaeger" <be*****@cherwe llinc.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi Dan,

Just a thought - is IIS configured and active on your pc?

Bernie
PS - re vs .net - I have 2002 and 2003 installed; I don't recall having
to do anything other than select the appropriate .exe when opening
either one. I can still open 2002 whenever I want (but I now never do).
"DanB" <ag*****@kc.rr. com> wrote in message
news:Ok******** *****@tk2msftng p13.phx.gbl...
> Thanks for the info Bernie.
>
> Even though I run VB.Net 2002 do you know should Visual Studio be
> 2003?
>
> I have just re-installed framework 1.1 and that did not fix it. I
> thought I read somewhere that you could have both 1.0 and 1.1
> installed but you must tell VB (or is it VS) which one to load. I
> don't know how to do that if that is the case.
>
> Do you think this has anything to do with the Web.Mail problem?
> Because I have googled this and I have found some of the information
> helpful. But nothing on point for this problem of the "Could not
> create CDO.message".
>
> "Bernie Yaeger" <be*****@cherwe llinc.com> wrote in message
> news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
>> 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" <ag*****@kc.rr. com> wrote in message
>> news:OP******** ******@TK2MSFTN GP12.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.SmtpServ er = "smtp-server.kc.rr.co m"
>>>
>>> mMail.SmtpServe r = "localhost"
>>>
>>> 'mMail.SmtpServ er = "127.0.0.1"
>>>
>>> Try
>>>
>>> mMail.Send("me@ kc.rr.com", "me***@kc.rr.co m", "Test", "Test body")
>>>
>>> Catch ex As Exception
>>>
>>> MsgBox("The following exception occurred: " + ex.ToString())
>>>
>>> 'check the InnerException
>>>
>>> While Not (ex.InnerExcept ion Is Nothing)
>>>
>>> MsgBox("The following InnerException reported: " +
>>> ex.InnerExcepti on.ToString())
>>>
>>> ex = ex.InnerExcepti on
>>>
>>> End While
>>>
>>> End Try
>>>
>>>
>>> Anybody know my next step
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>



Nov 21 '05 #12
Dan,
Did you follow all the suggests at http://www.systemwebmail.net/?

As far as I can tell that site is very complete in its handling of
System.Web.Mail !

Hope this helps
Jay
"DanB" <ag*****@kc.rr. com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hello,

Nope no office on this other than Frontpage.

I have decided to give up on CDO and go with a product from a 3rd
party.

Thanks to everyone for the ideas and help.

Dan
"Nak" <a@a.com> wrote in message
news:uv******** ******@TK2MSFTN GP10.phx.gbl...
Hi there,

It seems like there is so much confusion on this CDO thing, I
personally managed to get it working by installed the CDO objects from
the Microsoft Office XP CD, maybe that is weird, but it worked for me,
unless of course all it done was to re-register the DLL that you are
having troubles with.

Do you have Office installed at all? Maybe this can cause an issue,
I'm no expert in this matter, just having some guesses.

Nick.

"DanB" <ag*****@kc.rr. com> wrote in message
news:uz******** ******@TK2MSFTN GP10.phx.gbl...
Okay,

I think I can forget the framework 1.1 issue as the cause.

Yes I have IIS configured and running

I think CDOsys.dll is not registered correctly. But it won't
unregister by doing the regsvr32 /u command.

Maybe I am all wet here.

Dan

"Bernie Yaeger" <be*****@cherwe llinc.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi Dan,

Just a thought - is IIS configured and active on your pc?

Bernie
PS - re vs .net - I have 2002 and 2003 installed; I don't recall having
to do anything other than select the appropriate .exe when opening
either one. I can still open 2002 whenever I want (but I now never do).
"DanB" <ag*****@kc.rr. com> wrote in message
news:Ok******** *****@tk2msftng p13.phx.gbl...
> Thanks for the info Bernie.
>
> Even though I run VB.Net 2002 do you know should Visual Studio be
> 2003?
>
> I have just re-installed framework 1.1 and that did not fix it. I
> thought I read somewhere that you could have both 1.0 and 1.1
> installed but you must tell VB (or is it VS) which one to load. I
> don't know how to do that if that is the case.
>
> Do you think this has anything to do with the Web.Mail problem?
> Because I have googled this and I have found some of the information
> helpful. But nothing on point for this problem of the "Could not
> create CDO.message".
>
> "Bernie Yaeger" <be*****@cherwe llinc.com> wrote in message
> news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
>> 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" <ag*****@kc.rr. com> wrote in message
>> news:OP******** ******@TK2MSFTN GP12.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.SmtpServ er = "smtp-server.kc.rr.co m"
>>>
>>> mMail.SmtpServe r = "localhost"
>>>
>>> 'mMail.SmtpServ er = "127.0.0.1"
>>>
>>> Try
>>>
>>> mMail.Send("me@ kc.rr.com", "me***@kc.rr.co m", "Test", "Test body")
>>>
>>> Catch ex As Exception
>>>
>>> MsgBox("The following exception occurred: " + ex.ToString())
>>>
>>> 'check the InnerException
>>>
>>> While Not (ex.InnerExcept ion Is Nothing)
>>>
>>> MsgBox("The following InnerException reported: " +
>>> ex.InnerExcepti on.ToString())
>>>
>>> ex = ex.InnerExcepti on
>>>
>>> End While
>>>
>>> End Try
>>>
>>>
>>> Anybody know my next step
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>



Nov 21 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4081
by: James M. Luongo | last post by:
Hello, I am having problems with the mail() function, but I don't know what the problems are. Here is a snippet of code: $to = "jmluongo@comcast.net"; $from = "Gallery@gafok.com"; $subject = "Gallery Comment";
3
5054
by: Markus Weber | last post by:
Hi, we use htmlMimeMail-2.5.1 (http://www.phpguru.org/mime.mail.html) to send mails. If I send an e-mail with the subject "Das Öl - Öl Öl - Ö Ä Ü ß - test test" I will receive an e-mail with the subject "Das Öl - ÖlÖl - ÖÄÜß - test test". Some spaces have been removed.
14
22634
by: OldGuy | last post by:
Hi All Sendmail 8.12.11 php 4.3.9 Sendmail is installed and works properly. php is NOT in safemode from the command line; mail user@domain.com < testmsg works fine.
1
5752
by: Irmen de Jong | last post by:
Hi I'm trying to create e-mail content using the email.MIMEText module. It basically works, until I tried to send mail in non-ascii format. What I did, to test both iso-8859-15 and UTF-8 encodings, was this: ---- from email.MIMEText import MIMEText m=MIMEText(u"body text including an Euro char \u20ac\n", _charset="iso-8859-15") m = "from@mail.invalid"
8
5484
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
34
18300
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow "127.0.0.1". 4. Authentication: "Anonymous access" only. 5. Outbound connection listen to TCP 25. Besides,
6
2540
by: rekaeps | last post by:
We are developing an ASP.NET 2.0 (C#) application, and I'm having troubles sending e-mail from the server when accessing the web site from a separate client computer. Also, in the same scenario, I'm having trouble writing to the server's event log. Here's some details: Server and workstation both in the same workgroup Logged into server as local Administrator Logged into workstation as a local user that is only in the Users group on
1
3116
by: mayanksrmcem | last post by:
I need ur help. I want to send emails through php code. but there are some problems n i'm not able to understand the actual problems. the code , i've used is as followes---- <?php if (isset($_REQUEST)) { $to=$_REQUEST; $sub=$_REQUEST;
5
3950
by: Dave | last post by:
Hi All, I'm experiencing problems with sending mail using mail() to forwarded email accounts. The problem seems to revolve around the optional 4th argument of mail(), namely 'additional headers'. It seems that when I populate this 4th argument of mail(), any emails sent to an email forwarding service email address (ukreg/fasthosts actually) fail to reach their destination. Direct email addresses seem to work fine.
3
1969
by: shror | last post by:
I was testing to post a form and echo message according to the submitted box using else if and then mail() the box result to myself just for testing the procedure but i got some problems: 1# the text box value is not echoed to my result page 2# also the mail doesn't send me the text box value 3# the address bar view that the value entered was the correct value i entered so please help me the 111.htm form code is:
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10320
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5521
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4299
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.