前言
最近在捣鼓如何将Unity项目部署到Hololens2上,但是遇到了各种报错,国内资料又较少,故自己整理了下。
问题一、ERROR:DEP6957
首先是报了以下错误(识别不到Hololens2):
DEP6957: Failed to connect to device '127.0.0.1' using Universal Authentication.
Please verify the correct remote authentication mode is specified in the project debug settings.
COMException - No connection could be made because the target machine actively refused it.
(Exception from HRESULT: 0x8007274D) [0x8007274D]
结果发现是自己的TypeC线有问题,最后换了根TypeC或者用WIFI调试即可。
问题二、部署加载不了dll
在部署的时候一直报以下错误:
查看控制台报的是以下错误信息:
'Hololens2.exe' (Win32) : Loaded 'C:\Windows\System32\ntdll.dll'.
'Hololens2.exe' (Win32) : Loaded 'C:\Windows\System32\Kernel