开发者

Cannot debug VSTO addin on terminal server

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 t开发者_JS百科ime. Any ideas on a cause/solution?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜