Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a situation,I have an application which sends mail using OUTLOOK,problem is while I'm trying to send mails from the application which is opened as Administrator it throws exception

"Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))".Is there any way to solve it programmatically.

thanks
Posted
Updated 14-Oct-19 21:38pm
v2

1 solution

This is because of secirity, if your application is not running in admin mode you will not be able to close Outlook.

Here are a couple of MSDN article you may find useful:
Specific Security Considerations for Office Solutions[^]
Privacy and security for mail apps in Outlook[^]

Good luck
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900