troubleshooting Question

Using CreateOleObject('Outlook.Application') causes “Server execution failed” error

Avatar of enigmasolutions
enigmasolutions asked on
Windows 10Programming.NET ProgrammingDelphiOutlook
5 Comments1 Solution1580 ViewsLast Modified:

We have written an application in Delphi XE3 that sends emails via Outlook OLE.  FYI - see source code.

It has been working perfectly well for years until I upgraded to Windows 10.

Now I get "Server execution failed" whenever my Outlook 2013 is running.  
Of course it works when Outlook is not running.

It also works when I run both my EXE as well as Outlook as Administrator.  BUT, when I do this outlook complains when I try to create emails (Outlook doens't like being run as Administrator).

Here is a link which explains a lot about what is happening.

I just want to run my EXE as "normal" and Outlook as "normal" - ie not as administrator.  
But it is not working.  Why?

How can I make sure both processes run in the same security context?
Sinisa Vuk
Software architect
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros