最近在完成一个OBA的项目使用VSTO+outlook sp1 开发,然而一直遇到下面的问题,MS并没有在Outlook 2003中增加一个去掉该对话框的界面。做outlook与我们系统集成如果不停的跳出这种界面对用户来说是一个很不好的用户体验。
MS给出的解释是:
      Outlook 2003 provides the Object Model Guard security feature, which restricts access to certain portions of the Outlook object model (OM). If your environment is not configured to grant the add-in unrestricted access to the Outlook OM, you are prompted to grant access explicitly. If you choose not to grant access, the lab may not function as described in this document. For example, if the add-in contains code to send an e-mail message, a dialog box appears, as shown in the following figure.
 

郁闷了好几天之后终于在一个国外的网站上面看到一个可以解决该问题的插件。
该插件是可以免费的。用户装上该软件之后当第一次读取Outlook中的受保护的对象时,会跳出如下界面,


用户只要选择 Allow access 还有勾选下面的checkbox (always perform this action for this file)就可以避免上面的情况发生。
下面是下载地址:security_outlook
posted on 2007-06-25 16:38  何东建  阅读(267)  评论(0编辑  收藏  举报