Outlook 2013的新错误:我们无法完成此操作,因为我们现在无法联系服务器。请稍后再试。 [英] New Error with Outlook 2013: We can't complete this because we can't contact the server right now. Please try again later.

查看:727
本文介绍了Outlook 2013的新错误:我们无法完成此操作,因为我们现在无法联系服务器。请稍后再试。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了我们公司多年来一直使用的Outlook加载项(自从我做了很多编程以来已经很长时间了,所以请耐心等待我!)。

I have inherited an Outlook add-in that our company has been using for years (and it's been a long time since I did much programming, so please bear with me!).

我们的加载项包括一个树视图控件,它遍历文件夹以显示类似于Outlook中的文件夹浏览器的表示。 它在Outlook 2010中运行良好,但在Outlook 2013中,它在尝试为Public
文件夹构建树时失败。

Our add-in includes a treeview control, which iterates through folders in order to display a representation similar to the folder browser in Outlook.  It works fine in Outlook 2010, but in Outlook 2013 it fails when trying to build the tree for Public Folders.

错误是这样的:  "我们无法完成此操作,因为我们现在无法联系服务器。请稍后再试。"

The error is this:  "We can't complete this because we can't contact the server right now. Please try again later."

我有时也会这样:  "由于注册表或安装问题,操作失败。重新启动Outlook,然后重试。如果问题仍然存在,请重新安装。"  (但我怀疑第一个错误更多的是关键)

I also sometimes get this:  "The operation failed because of a registry or installation problem. Restart Outlook and try again. If the problem persists, reinstall."  (but I suspect that the first error is more the crux)

这是发生错误的行:

     ;    _Items.Add(新的OutlookFolder(this,folder));

        _Items.Add(new OutlookFolder(this, folder));

其中_Items = ICollection< OutlookFolder>

Where _Items = ICollection<OutlookFolder>

因此定义了OutlookFolder:

And OutlookFolder is defined thusly:

        public OutlookFolder(OutlookFolder父级,Outlook.MAPIFolder文件夹)

        {

            this.Parent = parent;     [OutlookFolder]

          &NBSP;&NBSP; this.Name = folder.Name;   
[String]

            this.Path = folder.FolderPath;   
[String]

            _Folder =文件夹;   
[Outlook.MAPIFolder]

            _HasFolder = true;   
[bool]

        }

        public OutlookFolder(OutlookFolder parent, Outlook.MAPIFolder folder)
        {
            this.Parent = parent;    [OutlookFolder]
            this.Name = folder.Name;    [String]
            this.Path = folder.FolderPath;    [String]
            _Folder = folder;    [Outlook.MAPIFolder]
            _HasFolder = true;    [bool]
        }

调试时,在执行上面的"添加"行之前,我可以看到folder.Name,所以我知道它正在获取公共文件夹数据,它只是在该行上爆炸某种原因。

When debugging, immediately prior to execution of the 'Add' line above I can see folder.Name, so I know it's getting public folder data, it just blows up on that line for some reason.

我不知道这是否足以让任何人了解,但我想我会问以防万一有人对Outlook的变化足够熟悉他们可能能够指出我正确的方向。

I don't know if that's enough to give anyone insight, but Ithought I'd ask just in case someone is familiar enough with changes in Outlook that they might be able to point me in the right direction.

谢谢

推荐答案

请确定它在哪条线上爆炸(使用调试)。你究竟什么时候调用这段代码?哪个outlook事件?
please determine on exactly which line it blows up (using debugging). When exactly do you invoke this code? on which outlook event?


这篇关于Outlook 2013的新错误:我们无法完成此操作,因为我们现在无法联系服务器。请稍后再试。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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