在c#中使用Outlook发送邮件时出错 [英] Error in Sending Mail using Outlook in c#

查看:212
本文介绍了在c#中使用Outlook发送邮件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个情况,我有一个使用OUTLOOK发送邮件的应用程序,问题是我正在尝试从以管理员打开的应用程序发送邮件时抛出异常



由于以下错误,检索CLSID为{0006F03A-0000-0000-C000-000000000046}的组件的COM类工厂失败:80080005服务器执行失败(HRESULT异常:0x80080005(CO_E_SERVER_EXEC_FAILURE))。有没有办法以编程方式解决它。



谢谢

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

推荐答案

这是因为如果你的应用程序未在管理模式下运行,您将无法关闭Outlook。



以下是您可能会发现有用的几篇MSDN文章:

Office解决方案的特定安全注意事项 [ ^ ]

邮件应用的隐私和安全在Outlook [ ^ ]



祝你好运
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


这篇关于在c#中使用Outlook发送邮件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆