Search Unity

Hololens - Unity Plugin - Websockets - Can not load System.Runtime.WindowsRuntime on device.

Discussion in 'VR' started by longda, May 11, 2017.

  1. longda

    longda

    Joined:
    Dec 13, 2014
    Posts:
    9
    Hi,

    I'm getting the following runtime error when trying to create a websocket:

    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)

    I'm using the MessageWebSocket class from the Windows.Networking.Sockets namespace. I have everything conditionally compiling with the NETFX_CORE symbol so it should only work/be called from windows platforms.

    Not 100% sure but I think it's finding the dll, just the wrong version.

    Any suggestions on how to get the correct dll on the device or is there something I can update in my Unity project (or the generated Visual Studio solution from Unity Build).

    Also posted on hololens forums: https://forums.hololens.com/discuss...load-system-runtime-windowsruntime-on-device/