Visual Studio 2017 fails to deploy UWP apps to IoT device

坚强是说给别人听的谎言 提交于 2019-12-12 17:24:19

问题


Visual Studio (VS 2017) has started failing to deploy to my IoT device ... I recently started using a more recent version of Windows 10 IoT Core (upgraded from build 17134 to insider build 17692) and Visual Studio can no longer deploy UWP apps.

The reported error is:

DEP6957: Failed to connect to device [IP Address] using Universal Authentication. Please verify the correct remote authentication mode is specified in the project debug settings. COMException - Exception from HRESULT: 0x801C0003

The IP address is valid and VS can see the device.


回答1:


This seems to be an error reflecting a mismatch between the Windows SDK installed on the Visual Studio machine and the OS version on the IoT device.

For recent versions of Windows 10 IoT Core (I'm using the insider images that you can install through the Windows IoT Dashboard), a recent version of the Windows SDK (I used Windows 10 SDK 1803) must be installed on your deployment machine.




回答2:


Also uninstalled and reinstalled UWP parts of VS as described above.

Finally, I clicked on "update" for the whole VS installation (Visual Studio Installation program). Drew 4GB out of the net over night and in the morning everything was working as it should...



来源:https://stackoverflow.com/questions/51292894/visual-studio-2017-fails-to-deploy-uwp-apps-to-iot-device

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