“调试器无法找到目标应用程序的注册." [英] "The debugger was unable to find the registration for the target application."

查看:135
本文介绍了“调试器无法找到目标应用程序的注册."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个UWP应用程序(来自Xamarin.Forms应用程序),可以在计算机上调试良好.但是当我尝试在手机上调试时,出现以下错误:

I have a UWP app (from a Xamarin.Forms app) which debugs fine on the computer. But when I try to debug on a phone, I get the following error:

无法调试Windows Store应用程序".... exe".调试器无法 查找目标应用程序的注册.如果有问题 仍然存在,请尝试卸载然后重新安装此应用程序.

Unable to debug Windows Store app '....exe'. The debugger was unable to find the registration for the target application. If the problem persists, try uninstalling and then reinstalling this application.

该应用确实安装在手机上,可以在手机上执行.但是我无法使用Visual Studio对其进行调试.

The app does get installed on the phone and can be executed there. But I can't debug it with Visual Studio.

同时,我在VS的错误列表中看到的错误是:

Meanwhile, the error I see in the error list in VS is:

DEP6700:设备端LaunchMsvsmon失败. [0x800401F3]无效 类字符串(HRESULT的异常:0x800401F3(CO_E_CLASSSTRING))

DEP6700: LaunchMsvsmon failed on the device side. [0x800401F3] Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))

我在计算机和电话上都卸载了,都重新启动了,删除了.vs文件夹,bin和obj文件夹...没有任何帮助.

I uninstalled both on the computer and on the phone, I rebooted both, I deleted the .vs folder, bin and obj folders... Nothing helped.

这些错误告诉我什么?

推荐答案

当前,Windows Phone支持的 Maximum SDK 版本是Windows 10 Creators Update(内部版本15063).如果您的项目目标版本是秋季创作者更新(内部版本16299),则将不支持该版本.

Currently, the Maximum SDK version supported by windows phone is Windows 10 Creators Update (Build 15063). If your project target version is Fall Creators Update (Build 16299), it will not be supported.

如果您的 Shared 项目为Portable Class Library,则可以将目标版本修改为Windows 10 Creators Update(内部版本15063).

If your Shared project is Portable Class Library, you could modify the target version to Windows 10 Creators Update (Build 15063).

但是,如果您使用了.NET Standard共享项目,并且它仅支持Fall Creators Update(内部版本16299).您无法修改目标版本.

However, if you have used .NET Standard shared project, and it only support Fall Creators Update (Build 16299). You could not modify the target version.

这篇关于“调试器无法找到目标应用程序的注册."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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