如何解决 DEP6500 和 DEP6701 错误?

How to solve DEP6500 and DEP6701 errors?

我在自己的解决方案中有一个名为 BTLE 的项目。加载项目并 运行 使用调试器在 phone 工程上找到它。

我有第二个解决方案,它也可以很好地加载和编译。

我将 BTLE 项目(Add/Existing 项目)添加到第二个解决方案中,编译它并尝试在调试器中 运行 它。

我可以看到应用程序已正常加载到 phone(我可以从 phone 运行),但调试器无法启动,我得到以下信息错误信息:

1>------ Deploy started: Project: BTLE, Configuration: Debug ARM ------
1>Deploying to Phone Internal Storage...
1>Updating the layout...
1>Copying files: Total 2 mb to layout...
1>Checking whether required frameworks are installed...
1>Registering the application to run from layout...
1>Deployment complete (0:00:05.469). Full package name: "76081875-4de1-4857-    8ce6-4e7a580ee1b6_1.0.0.0_arm__fdr7mxj3cnxqw"
2>------ Deploy started: Project: STPWindows, Configuration: Debug ARM ------
2>DEP6500 : A specified communication resource (port) is already in use by  another application. 0x89731800: 
2>DEP6701 : Bootstrapping failed with unexpected error: 'DEP6500 : A   specified communication resource (port) is already in use by another    application. 0x89731800: '.
========== Deploy: 1 succeeded, 1 failed, 0 skipped ==========

知道为什么我会收到这些错误消息吗?

关于 "A specified communication resources(port) is already in use" when attaching the debugger 中的最后一个答案以及您首先部署了 BTLE,然后又部署了一个包含 BTLE 的项目这一事实。我不认为你可以轻松地将相同的模块(具有相同的 ID)两次放入 Windows Phone 然后调试它。我什至不知道 Windows Phone 中是否有 public 可写 GAC 来避免这种影响。
您会尝试为第二个解决方案更改 BTLE 项目的项目 GUID(项目设置->应用程序->程序集信息)吗?或者从 phone 中删除第一个 BTLE 项目(并可能重新启动)?

你没有提到你的多项目解决方案是否有多个启动。

见下方截图。

在 Action 下,更改每个项目的相关操作并尝试部署。