Search Unity

Hololens and Transport layer || Unable to load plugin `network.bindings.dll`

Discussion in 'Windows Mixed Reality' started by mcrkersten, Dec 3, 2019.

  1. mcrkersten

    mcrkersten

    Joined:
    Mar 22, 2016
    Posts:
    3
    Hello,

    This is a crosspost from: https://forum.unity.com/threads/hol...e-to-load-plugin-network-bindings-dll.787487/

    I am trying to create a online application with the Hololens.
    I am connecting multiple platforms such as Android, Windows standalone and the Hololens to each other.
    The transport layer works perfectly on Android and Windows standalone. But the Hololens keeps giving me errors saying that it can not find the dll or it's dependencies, but the dll is present in the file-directory of the build.

    The Hololens will build and run the app, but as soon as I activate the "client" it gives me the following errors:
    'MultiplatformManager.exe' (Win32): Loaded '[Directory...]network.bindings.dll'. Symbols loaded.
    'MultiplatformManager.exe' (Win32): Unloaded '[Directory...]network.bindings.dll'
    Plugins: Failed to load 'network.bindings' because one or more of its dependencies could not be loaded.
    Unable to load plugin `network.bindings.dll

    I also tried rebuilding the dll as 86x, but that did not help either
    And yes, the settings in Unity are correct so that the dll is to be included in the WSAplayer.


    I am not sure what to do, hopefully someone can help!
    I included the full error.

    Greetings,
    Max
     

    Attached Files:

    Last edited: Dec 3, 2019
  2. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    567
    Is this your own DLL that you are building? If so, is it being built as a UWP DLL? Win32 DLLs may not work on UWP applications.

    Is this a managed DLL or a native DLL?

    Are you running the app in Release, and if so is the DLL built release or debug?

    Have you checked the DLL dependencies to see what may be required and possibly missing? https://stackoverflow.com/questions/7378959/how-to-check-for-dll-dependency#28304716
     
  3. mcrkersten

    mcrkersten

    Joined:
    Mar 22, 2016
    Posts:
    3
    Sorry for my late reply.
    I expect it to be a native dll and I rebuild it in release.

    Image has the following dependencies:

    WS2_32.dll
    VCRUNTIME140.dll
    api-ms-win-crt-stdio-l1-1-0.dll
    api-ms-win-crt-runtime-l1-1-0.dll
    KERNEL32.dll

    This is a dll that comes with com.unity.transport package.
    [Project]\Packages\com.unity.transport\Runtime\Bindings\network.bindings.dll
     
  4. timjohansson

    timjohansson

    Unity Technologies

    Joined:
    Jul 13, 2016
    Posts:
    96
    That is a native dll we pinvoke into, we only have a win32 version not a UWP one.
    We are working on rewriting the platform bindings in a way that will give us support for more platforms. We have no plans to add support for more platforms before that happens.
     
    mcrkersten likes this.