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\system32, 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\system32\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 8 7463
"Akbur" <ak****@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.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\system32, 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\system32\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
On 13 Apr, 13:19, "Mark Rae" <m...@markNOSPAMrae.netwrote:
"Akbur" <akb...@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.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\system32, 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\system32\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.SmtpServer is set a remote SMTP
server. I still get the "Could not create 'CDO.Message' object"
error.
"Akbur" <ak****@gmail.comwrote in message
news:11*********************@n76g2000hsh.googlegro ups.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.SmtpServer 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
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.
On Apr 13, 2:21 pm, "Aidy" <a...@noemail.xxxa.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.
"Aidy" <ai**@noemail.xxxa.comwrote in message
news:o_*********************@bt.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...
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 :)
On Apr 13, 2:51 pm, "Mark Rae" <m...@markNOSPAMrae.netwrote:
"Aidy" <a...@noemail.xxxa.comwrote in message
news:o_*********************@bt.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
|
by: jalbright99669 |
last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was...
|
by: Matthew3360 |
last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function.
Here is my code.
...
|
by: Matthew3360 |
last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
|
by: Arjunsri |
last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
|
by: WisdomUfot |
last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
|
by: Carina712 |
last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
| |