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.Http Exception: Could not create an object of type 'CDO.Message'. Please verify that the current platform configuration supports SMTP mail.
at System.Web.Mail .SmtpMail.LateB oundAccessHelpe r.get_LateBound Typ()
at System.Web.Mail .SmtpMail.CdoSy sHelper.Send(Ma ilMessage message)
at System.Web.Mail .SmtpMail.Send( MailMessage message)
at export.SMTP..ct or(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\Syste m32\CDOSYS.dll" and also for cdoex.dll but that is also throwing an error saying
loadlibrary("\w indows\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.S ervice worked fine till friday. it also sent emails.i dont know what happened suddenly.
please help
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.Http Exception: Could not create an object of type 'CDO.Message'. Please verify that the current platform configuration supports SMTP mail.
at System.Web.Mail .SmtpMail.LateB oundAccessHelpe r.get_LateBound Typ()
at System.Web.Mail .SmtpMail.CdoSy sHelper.Send(Ma ilMessage message)
at System.Web.Mail .SmtpMail.Send( MailMessage message)
at export.SMTP..ct or(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\Syste m32\CDOSYS.dll" and also for cdoex.dll but that is also throwing an error saying
loadlibrary("\w indows\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.S ervice worked fine till friday. it also sent emails.i dont know what happened suddenly.
please help
Comment