错误:抱歉,我们无法启动Outlook。一次只能运行一个版本的outlook。 [英] Error: sorry we're having trouble starting outlook. only one version of outlook can run at a time.

查看:996
本文介绍了错误:抱歉,我们无法启动Outlook。一次只能运行一个版本的outlook。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



在我的应用程序中,我在启动时将Outlook联系人加载到我的通用列表中,我的列表中有超过2000个联系人(它加载所有联系人需要至少4分钟。

问题是,当用户尝试打开Outlook应用程序时,这些联系人提取正在进行...它显示此错误... 。



抱歉我们在启动Outlook时遇到问题。一次只能运行一个版本的Outlook。检查Outlook的另一个版本是否是运行,或尝试重新启动计算机



如何摆脱它...请告诉我紧急。这是我获取联系人的代码...



Hi friends,

In My Application, I am loading Outlook Contacts to my generic list on startup, and I have more than 2000 contacts in my list (It takes atleast 4 minutes to load all the contacts).
The problem is, When the user try to open the Outlook Application, while these contact fetching is going on... It shows this Error....

"sorry we're having trouble starting outlook. only one version of outlook can run at a time. Check to see if another version of outlook is running, or try restarting your computer"

How to get rid of it... Please Tell me Urgent. This is my code fetching the contacts...

Outlook.Application app = new Outlook.Application();
                     Outlook.NameSpace ns = app.GetNamespace("MAPI");
                     Outlook.MAPIFolder contacts =
                     ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts);

                     for (int i = 1; i < contacts.Items.Count + 1; i++)
                     {
                         //Adding COntacts to a Generic List
                     }

推荐答案

也许您可以使用Exchange Web服务(EWS)而不是使用Outlook客户端,因为解决您的问题的唯一方法是用户等待。错误很明显。



这里有一个例子:

http://chrisrisner.com/Programmatically-Accessing-Outlook-Contacts-Via-Exchange-Web-Services [ ^ ]
Perhaps you can use Exchange Web Services (EWS) instead of using the Outlook client because the only way to get around your issue is for the user to wait. The error is clear about that.

There is an example here:
http://chrisrisner.com/Programmatically-Accessing-Outlook-Contacts-Via-Exchange-Web-Services[^]


尝试在创建新的MS Outlook之前获取现有的MS Outlook实例。



如何:获取并登录到展望 [ ^ ]
Try to get existing instance of MS Outlook before you create new one.

How to: Get and Log On to an Instance of Outlook[^]


这篇关于错误:抱歉,我们无法启动Outlook。一次只能运行一个版本的outlook。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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