469,644 Members | 1,980 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,644 developers. It's quick & easy.

CDOSYS.dll and CDOEX.dll problem

Hi everybody,

I wrote a windows service and I have to do sme email functionality in it. I used SMTP and added system.web reference to the project. there are no compilation errors as such but there is a run time error saying

System.Web.HttpException: Could not create an object of type 'CDO.Message'. Please verify that the current platform configuration supports SMTP mail.
at System.Web.Mail.SmtpMail.LateBoundAccessHelper.get _LateBoundTyp()
at System.Web.Mail.SmtpMail.CdoSysHelper.Send(MailMes sage message)
at System.Web.Mail.SmtpMail.Send(MailMessage message)
at export.SMTP..ctor(String filename)


i looked up and realized I need cdoex.dll or cdosys.dll in my project. i could not see both Microsoft CDO for Windows 2000 or Microsoft CDO for Exchange 2000 in the COM references list. But I do have them in my system. I tried adding them manually in the bin folder of my project. But no use.i dont know whats the problem.

i also tried registering them using regsvr32 "\WINDOWS\System32\CDOSYS.dll" and also for cdoex.dll but that is also throwing an error saying

loadlibrary("\windows\system32\cdosys.dll") failed-the specified module could notbe found.


I am using localhost as my SMTP server and it is relaying anonymous messages also. there are no authentication problems.

does anybody know what the heck is happening. its just a simple smtp emial functionality.Service worked fine till friday. it also sent emails.i dont know what happened suddenly.


please help
Jul 22 '08 #1
6 6146
bharathreddy
111 100+
hi

I think the same problem is been discurssed :
http://bytes.com/forum/thread203603.html

Refere this link it might help you.

bharath vasireddy
Jul 22 '08 #2
Plater
7,872 Expert 4TB
Do you need to use CDO?
Are you using VS2003? Becuase the SMTP classes moved in .NET2.0 and onward to a different location.
Jul 22 '08 #3
Hi, thanks for replying

I did not think i would need CDO but application throws an error saying

System.Web.HttpException: Could not create an object of type 'CDO.Message'. Please verify that the current platform configuration supports SMTP mail.
at System.Web.Mail.SmtpMail.LateBoundAccessHelper.get _LateBoundTyp()
at System.Web.Mail.SmtpMail.CdoSysHelper.Send(MailMes sage message)
at System.Web.Mail.SmtpMail.Send(MailMessage message)
at export.SMTP..ctor(String filename)

all i thought i needed was system.web.mail but i dont know why the above error came up
Jul 23 '08 #4
Curtis Rutland
3,256 Expert 2GB
You should look into System.Net.Mail

Very easy to send mail using SMTP, all in managed code.
Jul 23 '08 #5
It worked I used system.net.mail. Thanks for you help.
Jul 23 '08 #6
Curtis Rutland
3,256 Expert 2GB
No problem.
Jul 23 '08 #7

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

21 posts views Thread by tp | last post: by
14 posts views Thread by Neil Ginsberg | last post: by
7 posts views Thread by Daniel Billingsley | last post: by
2 posts views Thread by crushando | last post: by
8 posts views Thread by Akbur | last post: by
9 posts views Thread by paulmitchell507 | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.