Cannot debug VSTO addin on terminal server

拜拜、爱过 提交于 2019-12-11 03:38:30

问题


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:

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?


回答1:


A co-worker was able to find a solution:

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.

Set the Outlook project as the StartUp project.

Set the Outlook project Debugger Type to “Managed v4.0”.

This allows debugging to work as it did before, but skips the existing process check that was added to VSTO.



来源:https://stackoverflow.com/questions/4107852/cannot-debug-vsto-addin-on-terminal-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!