Outlook Automation is for People, not for Services.

I don’t know why we see a lot of customers trying to automate Outlook from a service.  It’s pretty well documented that it’s a bad idea.  Outlook Object Model (OOM) was written for automating Outlook for a user sitting at the box running it.   See, Outlook is very personal and I do mean, it’s very,…

0

Call Dispose on client when calling COM+ objects.

Dispose MUST be called from the client and not from the serviced component…   There is a requirement for clients of COM+ Serviced Components to call dispose on the component.  If you do not do this, it will not shut down.  When you inherit from servicedcomponent, you also inherit from IDisposable.  However, the client MUST…

1

Why is CDOSYS failing in a stored procedure?

If you’re experiencing issues with CDOSYS under a stored procedure, you may be running into one of the issues I’ll mention here.      Outlook is usually installed on SQL Servers in order to provide mail sending capability (using xp_sendmail).  However, xp_sendmail does not work in a cluster configuration. So CDOSYS is used from a stored procedure…

1