Quick background:
I’m making a simple Unity app utilizing the org.webrtc library from nuget. I have this packaged up as a plugin going into Unity from Visual Studio. After building in Unity, I then take the output Visual Studio solution and push the build directly to my hololens.
In the debug window, I get the following error. This seems like it cannot access the System.Runtime.WindowsRuntime.dll from Hololens but I’m not sure why exactly. I understand the build can’t locate the dll but I"m not sure why.
It seems reasonable that these libs should be available no problem on a windows stack, in Hololens - but maybe I’m missing something. Any help is appreciated.
Here’s error output:
testing web rtc…
(Filename: C:/buildslave/unity/build/artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)
‘HololensAppUnity.exe’ (Win32): Loaded ‘U:\Users\DefaultAccount\AppData\Local\DevelopmentFiles\HololensAppUnityVS.Debug_x86.username\Org.WebRtc.winmd’. Module was built without symbols.
‘HololensAppUnity.exe’ (CoreCLR: CoreCLR_UWP_Domain): Loaded ‘C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\HololensAppUnityVS.Debug_x86.username\Org.WebRtc.winmd’. Module was built without symbols.
NETFX_CORE || UNITY_WINRT
‘HololensAppUnity.exe’ (Win32): Loaded ‘U:\Users\DefaultAccount\AppData\Local\DevelopmentFiles\HololensAppUnityVS.Debug_x86.username\Org.WebRtc.dll’. Cannot find or open the PDB file.
‘HololensAppUnity.exe’ (Win32): Loaded ‘U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.25019.0_x86__8wekyb3d8bbwe\vccorlib140_app.dll’. Symbols loaded.
‘HololensAppUnity.exe’ (Win32): Loaded ‘U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.25019.0_x86__8wekyb3d8bbwe\msvcp140_app.dll’. Symbols loaded.
‘HololensAppUnity.exe’ (Win32): Loaded ‘C:\Windows\System32\mfreadwrite.dll’. Symbols loaded.
Exception thrown at 0x76D324C2 (KernelBase.dll) in HololensAppUnity.exe: 0x40080201: WinRT originate error (parameters: 0x80070005, 0x00000013, 0x042AF028).
The thread 0xcc0 has exited with code 0 (0x0).
Exception thrown at 0x76D324C2 (KernelBase.dll) in HololensAppUnity.exe: 0x40080201: WinRT originate error (parameters: 0x80070005, 0x00000013, 0x091FEBB0).
Exception thrown at 0x76D324C2 (KernelBase.dll) in HololensAppUnity.exe: 0x40080201: WinRT originate error (parameters: 0x80070005, 0x00000013, 0x00FFEEB0).
Exception thrown at 0x76D324C2 (KernelBase.dll) in HololensAppUnity.exe: 0x40080201: WinRT originate error (parameters: 0x80070005, 0x00000013, 0x042AEE68).
‘HololensAppUnity.exe’ (Win32): Loaded ‘C:\Windows\System32\Windows.Networking.dll’. Symbols loaded.
‘HololensAppUnity.exe’ (Win32): Loaded ‘C:\Windows\System32\FirewallAPI.dll’. Symbols loaded.
‘HololensAppUnity.exe’ (Win32): Loaded ‘C:\Windows\System32\fwbase.dll’. Symbols loaded.
Exception thrown at 0x76D324C2 in HololensAppUnity.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x0950C834.
Exception thrown at 0x76D324C2 in HololensAppUnity.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
Exception thrown at 0x76D324C2 in HololensAppUnity.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
Exception thrown at 0x76D324C2 in HololensAppUnity.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
Exception thrown: ‘System.IO.FileLoadException’ in System.Private.CoreLib.ni.dll
‘HololensAppUnity.exe’ (Win32): Loaded ‘U:\Users\DefaultAccount\AppData\Local\DevelopmentFiles\HololensAppUnityVS.Debug_x86.username\System.Diagnostics.StackTrace.dll’.
‘HololensAppUnity.exe’ (CoreCLR: CoreCLR_UWP_Domain): Loaded ‘C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\HololensAppUnityVS.Debug_x86.username\System.Diagnostics.StackTrace.dll’. Symbols loaded.
FileLoadException: Could not load file or assembly ‘System.Runtime.WindowsRuntime, Version=4.0.11.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at HololensAppUnityPlugin.Client.WebSocketClient.d__4.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
at HololensAppUnityPlugin.Client.WebSocketClient.initializeWebSocket()
at HololensAppUnityPlugin.Client.SessionManager…ctor()
at HololensAppUnityPlugin.Client.SessionManager.get_Instance()
at HololensAppUnityPlugin.Client.SessionManager.WebRtcInitialize()
at Tests.TestWebRtc()
at Tests.Start()
at Tests.$Invoke0Start(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
(Filename: Line: 0)