Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug DllNotFoundException: nanosockets assembly:<unknown assembly> type:<unknown type> member:(null)

Discussion in 'Editor & General Support' started by masta-yoda, Feb 17, 2023.

  1. masta-yoda

    masta-yoda

    Joined:
    Apr 19, 2020
    Posts:
    86
    The Unity Editor 2022.2.7f1 is unable to find the Dll with the following error:

    > DllNotFoundException: nanosockets assembly:<unknown assembly> type:<unknown type> member:(null)

    It works only when I build a package and run it on a device (Android, PC). The library is enabled for the editor in settings (Unity studio restarted):



    Full stacktrack:

    DllNotFoundException: nanosockets assembly:<unknown assembly> type:<unknown type> member:(null)
    Fusion.Sockets.NetAddress.CreateFromIpPort (System.String ip, System.UInt16 port) (at Fusion/Fusion.Sockets/NetAddress.cs:145)
    Fusion.Sockets.NetAddress.Any (System.UInt16 port) (at Fusion/Fusion.Sockets/NetAddress.cs:116)
    Fusion.NetworkRunner.StartGameModeCloud (Fusion.StartGameArgs args) (at Fusion/Fusion.Runtime/Runner/NetworkRunner.Matchmaking.cs:821)
    UnityEngine.Debug:LogException(Exception)
    Fusion.FusionUnityLogger:LogException(String, DefaultContext&, Exception) (at Assets/Photon/Fusion/Scripts/FusionUnityLogger.cs:143)
    Fusion.Log:Exception(NetworkRunner, Exception) (at Fusion/Fusion.Common/Log.cs:138)
    Fusion.<ShutdownWithException>d__315:MoveNext() (at Fusion/Fusion.Runtime/Runner/NetworkRunner.Matchmaking.cs:906)
    System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start(<ShutdownWithException>d__315&)
    Fusion.NetworkRunner:ShutdownWithException(Exception)
    Fusion.<StartGameModeCloud>d__314:MoveNext() (at Fusion/Fusion.Runtime/Runner/NetworkRunner.Matchmaking.cs:884)
    System.Threading.Tasks.TaskCompletionSource`1:TrySetResult(Int16)
    Fusion.Photon.Realtime.Async.OperationHandler:SetResult(Int16) (at Fusion/Fusion.Realtime/RealtimeExtensions/OperationHandler.cs:34)
    Fusion.Photon.Realtime.Async.OperationHandler:OnJoinedRoom() (at Fusion/Fusion.Realtime/RealtimeExtensions/OperationHandler.cs:122)
    Fusion.Photon.Realtime.MatchMakingCallbacksContainer:OnJoinedRoom() (at Fusion/Fusion.Realtime/Realtime/LoadBalancingClient.cs:4206)
    Fusion.Photon.Realtime.LoadBalancingClient:OnEvent(EventData) (at Fusion/Fusion.Realtime/Realtime/LoadBalancingClient.cs:3240)
    ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(StreamBuffer) (at C:/Dev/photon-sdk-dotnet/PhotonDotNet/PeerBase.cs:899)
    ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands() (at C:/Dev/photon-sdk-dotnet/PhotonDotNet/EnetPeer.cs:577)
    ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands() (at C:/Dev/photon-sdk-dotnet/PhotonDotNet/PhotonPeer.cs:1771)
    ExitGames.Client.Photon.PhotonPeer:Service() (at C:/Dev/photon-sdk-dotnet/PhotonDotNet/PhotonPeer.cs:1685)
    Fusion.Photon.Realtime.LoadBalancingClient:Service() (at Fusion/Fusion.Realtime/Realtime/LoadBalancingClient.cs:1412)
    Fusion.Photon.Realtime.FusionRelayClient:Update() (at Fusion/Fusion.Realtime/Client/FusionRelayClient.cs:234)
    Fusion.CloudCommunicator:Service() (at Fusion/Fusion.Runtime/CloudServices/CloudCommunicator.cs:51)
    Fusion.CloudServices:Update() (at Fusion/Fusion.Runtime/CloudServices/CloudServices.cs:175)
    Fusion.NetworkRunner:Update() (at Fusion/Fusion.Runtime/Runner/NetworkRunner.cs:1316)


    What did I miss in configuring this library usage in the editor?
     
    pokelocos likes this.
  2. pokelocos

    pokelocos

    Joined:
    Nov 9, 2015
    Posts:
    36
    same problem but in 2022.2.9f1