“The debugger was unable to find the registration for the target application.”

强颜欢笑 提交于 2019-12-13 03:01:20

问题


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:

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.

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

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

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

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

What are these errors telling me?


回答1:


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.

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

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.



来源:https://stackoverflow.com/questions/49352103/the-debugger-was-unable-to-find-the-registration-for-the-target-application

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