[英]How to handle security pop-up in outlook using C#
While Automating Outlook using Microsoft.Office.Interop.Outlook a security pop-u is getting displayed saying "A program is trying to access a email folders.......".在使用 Microsoft.Office.Interop.Outlook 自动化 Outlook 时,会显示一个安全弹出窗口,上面写着“程序正在尝试访问电子邮件文件夹......”。
Please help how can we bypass/solve using C# without using 'Redemption' or by changing the security settings(do not have access).请帮助我们如何绕过/解决使用 C# 而不使用“赎回”或更改安全设置(无权访问)。
PS: could we use JavaScript executer to accept the alert box? PS:我们可以使用 JavaScript 执行器来接受警报框吗? Thanks in advance提前致谢
如果您不想使用Redemption或 ClickYes 之类的实用程序,您唯一的选择就是安装最新的防病毒应用程序(如果您可以控制代码运行的环境)。
You get a standard security prompt in Outlook.您会在 Outlook 中获得标准的安全提示。
There are several ways for suppressing such prompts:有几种方法可以抑制此类提示:
Use a third-party components for suppressing Outlook security warnings.使用第三方组件来抑制 Outlook 安全警告。 See Security Manager for Microsoft Outlook for more information.有关详细信息,请参阅Microsoft Outlook 安全管理器。
Use a low-level API instead of OOM.使用低级 API 而不是 OOM。 Or any other third-party wrappers around that API, for example, Redemption.或围绕该 API 的任何其他第三方包装器,例如 Redemption。
Develop a COM add-in which has access to the trusted Application object.开发一个可以访问受信任的应用程序对象的 COM 加载项。 And then communicate from a standalone application with an add-in using standard .Net tools (Remoting).然后使用标准 .Net 工具(远程处理)从独立应用程序与加载项进行通信。
Use group policy objects for setting up machines.使用组策略对象来设置机器。
You can read more about all these ways on the Outlook "Object Model Guard" Security Issues for Developers page.您可以在面向开发人员的 Outlook“对象模型防护”安全问题页面上阅读有关所有这些方式的更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.