.net 授予对outlook应用程序的访问权限
我开发了一个访问outlook的.NET应用程序。对于我的计算机来说,它工作正常,但当我发布它并将其运行到其他PC时,outlook会显示一个弹出窗口,“外部应用程序要访问outlook,请授予访问权限1/2/5/10分钟” 但我的应用程序需要10分钟以上的访问时间。解决这个问题的办法是什么 我猜:.net 授予对outlook应用程序的访问权限,.net,outlook,.net,Outlook,我开发了一个访问outlook的.NET应用程序。对于我的计算机来说,它工作正常,但当我发布它并将其运行到其他PC时,outlook会显示一个弹出窗口,“外部应用程序要访问outlook,请授予访问权限1/2/5/10分钟” 但我的应用程序需要10分钟以上的访问时间。解决这个问题的办法是什么 我猜: 如何使此应用程序在outlook中受信任 我的计算机outlook从未问过我有关访问的问题,为什么其他计算机需要访问时间?这是因为我在我的系统上开发了应用程序吗 编辑 和我在这里发现的一样 但当我复
AddinExpress.Outlook.SecurityManager SecurityManager = new AddinExpress.Outlook.SecurityManager();
SecurityManager.DisableOOMWarnings = true;
try {
// ... any action with protected objects ...
} finally {
// In any case please remember to turn on
// Outlook Security after your code,
// since now it is very easy to switch it off! :-)
SecurityManager.DisableOOMWarnings = false;
}
此语句显示为错误:
AddinExpress.Outlook.SecurityManager
我必须使用哪个名称空间,我使用的是.NET2.0
以下是我已经包含在.cs文件中的名称空间
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.Office.Interop;
using System.Reflection;
using Microsoft.Office;
using System.Runtime.InteropServices;
using OutLook = Microsoft.Office.Interop.Outlook;
using System.Reflection;
using System.Text;
using System.Configuration;
using System.Security;
警告“功能”被称为
如果Outlook 2007运行在具有最新防病毒软件的系统上,则不会弹出警告,因此其他计算机可能没有AV,或者正在运行security center API无法查询其状态的AV
如果您是从VSTO加载项访问outlook,您可以通过调用受信任的
ThisApplication
对象(链接中的示例)绕过防护,如果您使用的是香草互操作,您将需要执行其他操作(例如)。谢谢。我现在可以理解为什么我的电脑中没有弹出窗口,因为我使用的是outlook 2007。但其他计算机正在使用outlook 2003。我有没有办法只为我的应用程序禁用该弹出窗口?另一个问题是,我无法在运行我的应用程序的其他PC上安装任何其他软件。以下是有关ol2k3缓解措施的一些信息;