无法在终端服务器上调试VSTO加载项 [英] Cannot debug VSTO addin on terminal server
问题描述
我们的开发团队通常在同一终端服务器上工作.我们正在开发Outlook VSTO 2010插件.我们只是从"Visual Studio 2008/Office 2003/VSTO 2005"迁移到"Visual Studio 2010/Office 2010/VSTO 2010".如果任何其他用户在服务器上运行Outlook,则尝试从Visual Studio调试加载项会导致以下错误:
Our development team mostly works on the same terminal server. We are working on an Outlook VSTO 2010 addin. We just migrated from "Visual Studio 2008/Office 2003/VSTO 2005" to "Visual Studio 2010/Office 2010/VSTO 2010". Attempting to debug the Add-In from Visual Studio results in the following error if any other user is running Outlook on the server:
由于"Outlook"已在运行,因此无法调试外接程序.关闭"Outlook",然后再次运行项目.
Cannot debug the add-in because 'Outlook' is already running. Close 'Outlook' and then run the project again.
在软件更新之前,每个开发人员都可以同时调试该应用程序.关于原因/解决方案有什么想法吗?
Before the software update, each developer could debug the app at the same time. Any ideas on a cause/solution?
推荐答案
一个同事能够找到解决方案:
A co-worker was able to find a solution:
通过从添加现有项目"对话框中浏览到Office安装路径,然后选择Outlook.exe,将Outlook.exe作为现有项目添加到Visual Studio解决方案中.
Add Outlook.exe to the Visual Studio solution as an existing project, by browsing to the Office installation path from the "Add existing project" dialog, and selecting Outlook.exe.
将Outlook项目设置为启动"项目.
Set the Outlook project as the StartUp project.
将Outlook项目调试器类型设置为"Managed v4.0".
Set the Outlook project Debugger Type to "Managed v4.0".
这允许调试像以前一样进行,但是跳过了已添加到VSTO的现有过程检查.
This allows debugging to work as it did before, but skips the existing process check that was added to VSTO.
这篇关于无法在终端服务器上调试VSTO加载项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!