By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,905 Members | 894 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,905 IT Pros & Developers. It's quick & easy.

Could Not Access CDO.Message object in IIS6.0

P: n/a
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
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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?

"Desmond" <ta***@ncs.com.sg> wrote in message
news:00****************************@phx.gbl...
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

Nov 17 '05 #2

P: n/a
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.v b:line 419"
TargetSite: {System.Reflection.RuntimeMethodInfo}

"Desmond" <ta***@ncs.com.sg> wrote in message news:00****************************@phx.gbl...
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

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.