Could Not Access CDO.Message object in IIS6.0

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
 
C

Chuck Haeberle

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?
 
D

David Waz...

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}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top