473,728 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to send an email - cdosys.dll problem

Dear all,

I'm having major issues sending an email from my ASP.NET app.

I'm getting a "Could not create 'CDO.Message' object".

When I did a search for cdosys.dll in \win_location\s ystem32, I could
not find it. So I copied it from another Windows 2003 server, where
it did exist. Another dependant file was missing too (inetcomm.dll).

I've tried registering cdosys.dll using regsvr32 cdosys.dll and also
regsvr32 \win_location\s ystem32\cdosys. dll but I keep getting an error
'LoadLibrary(.. .) failed - a dynamic link library (DLL) initialization
routine failed'. The same happens when I try to registry
inetcomm.dll.

An SMTP service is installed on the Windows 2003 machine I am dealing
with. I have a feeling it is because cdosys.dll does not exist in the
registry which is why the error is occuring, but I do not know how to
overcome the LoadLibrary failure message.

Can anyone advise? I've read lots of good articles on the net but to
no avail.

Thanks,
Akbur

Apr 13 '07 #1
8 7546
"Akbur" <ak****@gmail.c omwrote in message
news:11******** **************@ o5g2000hsb.goog legroups.com...
I'm having major issues sending an email from my ASP.NET app.

I'm getting a "Could not create 'CDO.Message' object".

When I did a search for cdosys.dll in \win_location\s ystem32, I could
not find it. So I copied it from another Windows 2003 server, where
it did exist. Another dependant file was missing too (inetcomm.dll).

I've tried registering cdosys.dll using regsvr32 cdosys.dll and also
regsvr32 \win_location\s ystem32\cdosys. dll but I keep getting an error
'LoadLibrary(.. .) failed - a dynamic link library (DLL) initialization
routine failed'. The same happens when I try to registry
inetcomm.dll.

An SMTP service is installed on the Windows 2003 machine I am dealing
with. I have a feeling it is because cdosys.dll does not exist in the
registry which is why the error is occuring, but I do not know how to
overcome the LoadLibrary failure message.

Can anyone advise? I've read lots of good articles on the net but to
no avail.
Well, first things first... You say you are using ASP.NET, so what on earth
are you trying to do with cdosys.dll...?? ???

To send email in any .NET application, all you need is the System.Net.Mail
namespace, and a valid SMTP queue:
http://www.systemnetmail.com/faq/1.3.aspx
http://www.systemnetmail.com/faq/3.aspx
Apr 13 '07 #2
On 13 Apr, 13:19, "Mark Rae" <m...@markNOSPA Mrae.netwrote:
"Akbur" <akb...@gmail.c omwrote in message

news:11******** **************@ o5g2000hsb.goog legroups.com...


I'm having major issues sending an email from my ASP.NET app.
I'm getting a "Could not create 'CDO.Message' object".
When I did a search for cdosys.dll in \win_location\s ystem32, I could
not find it. So I copied it from another Windows 2003 server, where
it did exist. Another dependant file was missing too (inetcomm.dll).
I've tried registering cdosys.dll using regsvr32 cdosys.dll and also
regsvr32 \win_location\s ystem32\cdosys. dll but I keep getting an error
'LoadLibrary(.. .) failed - a dynamic link library (DLL) initialization
routine failed'. The same happens when I try to registry
inetcomm.dll.
An SMTP service is installed on the Windows 2003 machine I am dealing
with. I have a feeling it is because cdosys.dll does not exist in the
registry which is why the error is occuring, but I do not know how to
overcome the LoadLibrary failure message.
Can anyone advise? I've read lots of good articles on the net but to
no avail.

Well, first things first... You say you are using ASP.NET, so what on earth
are you trying to do with cdosys.dll...?? ???

To send email in any .NET application, all you need is the System.Net.Mail
namespace, and a valid SMTP queue:http://www.systemnetmail.com/faq/1.3...om/faq/3.aspx- Hide quoted text -

- Show quoted text -
I am using System.Web.Mail in my code (still using ASP 1.1 for various
reasons and dont have the luxury of using the SmtpClient class) - but
I thought that cdosys.dll is used by System.Web.Mail and therefore is
necessary. You imply this is incorrect - fair enough.

In my code I'm doing a very simple SmtpMail.Send (...). Before I do
the send I ensure that SmtpMail.SmtpSe rver is set a remote SMTP
server. I still get the "Could not create 'CDO.Message' object"
error.

Apr 13 '07 #3
"Akbur" <ak****@gmail.c omwrote in message
news:11******** *************@n 76g2000hsh.goog legroups.com...
I am using System.Web.Mail in my code (still using ASP 1.1 for various
reasons and dont have the luxury of using the SmtpClient class)
OK. Generally speaking, because ASP.NET v2 has been out for nearly 18 months
now, people will assume that's what you are using unless you explicitly
state otherwise...
- but I thought that cdosys.dll is used by System.Web.Mail and therefore
is
necessary. You imply this is incorrect - fair enough.
Now that I know you're using v1.1, then things are a little different:
http://www.systemwebmail.com/faq/1.3.aspx
http://www.systemwebmail.com/faq/2.1.aspx
In my code I'm doing a very simple SmtpMail.Send (...). Before I do
the send I ensure that SmtpMail.SmtpSe rver is set a remote SMTP
server. I still get the "Could not create 'CDO.Message' object"
error.
To troubleshoot that, you'll need to inspect the InnerException property of
the Exception object:
http://www.systemwebmail.com/faq/4.aspx

Also see the following:
http://www.google.co.uk/search?sourc...+not+create%22
Apr 13 '07 #4
Well, first things first... You say you are using ASP.NET, so what on
earth are you trying to do with cdosys.dll...?? ???
The .net mail class is simply a .net wrapper around the CDO COM objects.

He doesn't say what vs of .net he is using, maybe with 2.0 they have a pure
..net solution (I know they downgraded some classes in this area so hopefully
that is the case) but in 1.1 you defo use CDO.
Apr 13 '07 #5
On Apr 13, 2:21 pm, "Aidy" <a...@noemail.x xxa.comwrote:
Well, first things first... You say you are using ASP.NET, so what on
earth are you trying to do with cdosys.dll...?? ???

The .net mail class is simply a .net wrapper around the CDO COM objects.

He doesn't say what vs of .net he is using, maybe with 2.0 they have a pure
.net solution (I know they downgraded some classes in this area so hopefully
that is the case) but in 1.1 you defo use CDO.
Sorry for not being clear. I'm definitely using 1.1.

Apr 13 '07 #6
"Aidy" <ai**@noemail.x xxa.comwrote in message
news:o_******** *************@b t.com...
>Well, first things first... You say you are using ASP.NET, so what on
earth are you trying to do with cdosys.dll...?? ???

He doesn't say what vs of .net he is using,
He did in a later post...
maybe with 2.0 they have a pure .net solution (I know they downgraded some
classes in this area so hopefully that is the case)
It is, AFAIK...
but in 1.1 you defo use CDO.
Indeed - see subsequent posts in this thread...
Apr 13 '07 #7
He did in a later post...

I know
It is, AFAIK...
Good
Indeed - see subsequent posts in this thread...
I have.

Look, I can post and add no value also :)
Apr 13 '07 #8
On Apr 13, 2:51 pm, "Mark Rae" <m...@markNOSPA Mrae.netwrote:
"Aidy" <a...@noemail.x xxa.comwrote in message

news:o_******** *************@b t.com...
Well, first things first... You say you are using ASP.NET, so what on
earth are you trying to do with cdosys.dll...?? ???
He doesn't say what vs of .net he is using,

He did in a later post...
maybe with 2.0 they have a pure .net solution (I know they downgraded some
classes in this area so hopefully that is the case)

It is, AFAIK...
but in 1.1 you defo use CDO.

Indeed - see subsequent posts in this thread...
Mark,

Thank you for your support. The issue has been resolved.

I found that vital DLL files were missing in my installation of
Windows 2003. For some reason, Outlook Express was not installed on
the server. This resulted in some dll's that System.Web.Mail requires
to be missing. Once I had installed Outlook Express 5 on the server,
I then proceeded to register cdosys.dll (regsvr32). I then ran my
ASP.NET 1.1 app again and found that it was working perfectly.

Best regards,
Akbur

Apr 13 '07 #9

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

Similar topics

3
9532
by: Salim Afþar | last post by:
Hi, I'm using CDO object to send email but it doesn't send any email and it does not give an error. My code look like this: Dim iMsg2 Dim iConf2 Dim Flds2 Const cdoSendUsingPort = 2 set iMsg2 = CreateObject("CDO.Message")
3
7062
by: Robert Hogan | last post by:
Hello, I am attempting to send emails using T-SQL (in a SQLServerAgent Job) using the stored procedure sp_SendSMTPMail. I created the stored proc using the following script that I got off a post here on google. CREATE PROCEDURE sp_SendSMTPMail (@From varchar(255), @To varchar(8000), @Subject varchar(255), @Body varchar(8000),
4
7905
by: tp | last post by:
HI... I have created simple .asp page and i would like to send my page as email using my outlook . is it possible to send form body as new email outlook body using mailto command or any other way Pls help me TP
4
3796
by: PawelR | last post by:
Hi, everbody. How send e-mail if smtp need authorization. If authorization is not required send email is not problem but I use SmtpMail.Send(myMail) PawelR
5
8795
by: Andreas | last post by:
I am working with three computers, my developing computer, a Web Server and a Mail Server (Exchange). I am trying to send a email from the Web Server via the Mail Server to a valid email address with this code: MailMessage msgMail = new MailMessage(); msgMail.To = "test@address.com"; msgMail.From = "from@address.com"; msgMail.Subject = "Mail Example Subject";
3
3145
by: skinymike | last post by:
I have read the forum regarding how to send email using CDOSYS... I have try to use the code given but still can't make it what should i do with the smtpserver and smtpserverport? please help thanks Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="mymail@mydomain.com" myMail.To="mymail@hotmail.com" myMail.TextBody="This is a message."
0
3253
by: Atenza | last post by:
Hi all, I develop an VB6 program to send email by using CDOSYS.DLL. It works fine as follow: Dim iMsg As New CDO.Message Dim iDsrc As CDO.IDataSource Set iDsrc = iMsg ' (QueryInterface) Dim iConf As New CDO.Configuration Dim Flds As ADODB.Fields
9
3028
by: paulmitchell507 | last post by:
I have a file called email2.asp which I am using to mail data obtained from a SQL query. I would like to pass the holiday_ID value in the querystring attached to the end of the URL. It all works except that I can't get the value of holiday_ID included as a querystring. As a test I can insert a value after the ?id= and this is passed as a querystring. I am sure it's just the syntax that I am having problem with
3
2257
by: viki1967 | last post by:
Hi all. I have problem whit this email address: john.d'almonte@mydomain.com If email address contain apostrophe the send email ( I send with CDOSYS component) responde with failure. I have try whit replace, but not working.
0
8897
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
9416
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9270
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
9194
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,...
1
6711
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6012
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4524
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
4787
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3232
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

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.