无法调试加载项,因为"Outlook"已在运行 [英] Cannot debug the add-in because 'Outlook' is already running

查看:133
本文介绍了无法调试加载项,因为"Outlook"已在运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2013中有一个Outlook 2007加载项项目.它一直运行良好,并且突然间Visual Studio一直拒绝调试,并显示一条错误消息

I have an Outlook 2007 add-in project in Visual Studio 2013. It's been working fine forever, and all of a sudden Visual Studio keeps refusing to debug, with an error message saying

由于"Outlook"已在运行,因此无法调试外接程序.关闭 "Outlook",然后再次运行项目.

Cannot debug the add-in because 'Outlook' is already running. Close 'Outlook' and then run the project again.

否,Outlook未运行.在任务管理器的进程"选项卡中没有可见的Outlook进程.

No, outlook is not running. There is no Outlook process visible in the processes tab of Task Manager.

我确定重新启动计算机可以解决该问题,但是我正在远程工作,并且无法在一周内重新启动.重新启动Visual Studio和Outlook无效.我尝试了此答案,但是正如我在对该答案的评论中指出的那样,不会触发断点.

I'm sure restarting the machine would resolve the issue but I am working remotely and cannot reboot for a week. Restarting visual studio and outlook has not worked. I tried this answer but as I noted in my comment to the answer, breakpoints don't get triggered.

Visual Studio如何检查运行的Outlook?

How does Visual Studio check for running outlook?

推荐答案

Outlook作为已暂停的进程运行.在任务管理器的进程"选项卡中看不到它;我在详细信息"标签中找到了它.这令人产生误解,因为我仍然可以启动(通常是Outlook的新实例)并将其关闭,但Visual Studio仍在报告该Outlook已经在运行.无论如何,我能够从资源监视器(可以从任务管理器的性能"选项卡(底部的超链接显示打开资源监视器"打开)中恢复Outlook的挂起实例.向下,调试Outlook Add in效果很好.

Outlook was running as a suspended process. It could not be seen in the 'processes' tab of Task Manager; I found it in the 'details' tab. It was misleading because I could still start (manually a new instance of) Outlook and shut it down and yet Visual Studio kept reporting that Outlook was already running. Anyway, I was able to resume the suspended instance of Outlook from Resource Monitor (which can be opened from Task Manager's 'Performance' tab (hyperlink at the bottom that says 'Open Resource Monitor'). After resuming the suspended Outlook process and shutting it down, debugging the outlook add in worked fine.

这篇关于无法调试加载项,因为"Outlook"已在运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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