Could Not Access CDO.Message object in IIS6.0

  • Thread starter Thread starter Desmond
  • Start date Start date
D

Desmond

Hi,
I would really appreciate if somebody could give some
advise on this.
I've a ASP.NET application that is supposed to send
emails and it is tested to be working well on IIS 5.0 and
tested working in .NET Framework 1.0/1.1.
Recently this is ported over to IIS 6.0 using .NET
Framework 1.1 and the error "Could Not Access CDO.Message
object" is encountered.
I suspect it could be due to the low privilege asp.net
worker process account which does not have the access
rights to the CDO.Message object.
Wonder if anyone could kindly advise on how to set the
privilege in the asp.net account to be able to access
this CDO.Message object?

Thanks.

regards,
Desmond
 
If this is in ASP.NET, why not use the core clr objects SmtpMessage and
SmtpMail to send your emails?

Or are you using them and it's freaking out at a lower level than you
control?
 
I've had the same error.
Fought it for a day or two, and then it just started working...

Yesterday, created a new web service for email in the same application- same error...
.... and the previously working program started to produce the same error...

fought it for 4 or 5 hours - rebooted - nothing -
just before giving up - it started to work...

I'm using the System.Web.Mail objects here. I've seen many posts about CDO - wish M.S. would address the issue.

The last error I received was different, but indicates CDO again...


{System.NullReferenceException}
[System.NullReferenceException]: {System.NullReferenceException}
HelpLink: Nothing
InnerException: Nothing
Message: "Object reference not set to an instance of an object."
Source: "mscorlib"
StackTrace: " at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Web.Mail.CdoSysHelper.Send(MailMessage message)
at System.Web.Mail.SmtpMail.Send(MailMessage message)
at InBound.Support.baseEmail.SendEmail(Boolean ExceptionOnFail) in C:\...\InBound\Support\BusinessObjects\baseEmail.vb:line 419"
TargetSite: {System.Reflection.RuntimeMethodInfo}
 
Back
Top