Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Unity Multiplayer Error: Copying assembly from 'Temp/com.unity.multiplayer-hlapi.Runtime.dll' to 'Library/ScriptAssemb

Discussion in 'Connected Games' started by iazlur2, Mar 13, 2019.

  1. iazlur2

    iazlur2

    Joined:
    Sep 24, 2016
    Posts:
    6
    Hello everyone, I tested everything today to fix that error:

    Copying assembly from 'Temp/com.unity.multiplayer-hlapi.Runtime.dll' to 'Library/ScriptAssemblies/com.unity.multiplayer-hlapi.Runtime.dll' failed

    Mirror asset got me the same error Temp/mirror.dll.

    Ive disabled my antivirus, reinstall unity, that error appear when compiling and follow unable to start by play in-editor function.

    Please help me, im going to lost hundred of work staff.

    Thanks
     
  2. iazlur2

    iazlur2

    Joined:
    Sep 24, 2016
    Posts:
    6
    Solution:

    1. Download "Mirror" from asset.
    2. Replace all classic Networking component of all gameobjects/prefab by Mirror scripts component (networkmanager, networkidentity, networktransform, ....).
    3. In visual studio code at right on Solution references, search "hlapi" and remove all hlapi references.
    4. Replace all your "using UnityEditor.Networking" and "using UnityEditor.Networking.X" by "using Mirror;"
    5. :)
     
    vis2k likes this.
  3. BernieRoehl

    BernieRoehl

    Joined:
    Jun 24, 2010
    Posts:
    63
    I had the same problem, and tried that solution. No luck... I still get

    Copying assembly from 'Temp/Mirror.dll' to 'Library/ScriptAssemblies/Mirror.dll' failed
     
  4. BernieRoehl

    BernieRoehl

    Joined:
    Jun 24, 2010
    Posts:
    63
    ... and it turned out to be Dropbox. I paused syncing, and the problem went away.

    Leaving this note in case others encounter the same problem.
     
  5. unity_4zerogr

    unity_4zerogr

    Joined:
    Apr 20, 2019
    Posts:
    1
    Copying assembly from 'Temp/Unity.Timeline.dll' to 'Library/ScriptAssemblies/Unity.Timeline.dll' failed

    Copying assembly from 'Temp/Unity.TextMeshPro.dll' to 'Library/ScriptAssemblies/Unity.TextMeshPro.dll' failed

    and missing package manager
    unity V2019.1.0f2

    I'm new to unity and before even started to use I encounter these errors, so ...
     
  6. RigoCL

    RigoCL

    Joined:
    Sep 22, 2015
    Posts:
    7
    Same problem here.

    Copying assembly from 'Temp/com.unity.multiplayer-hlapi.Runtime.dll' to 'Library/ScriptAssemblies/com.unity.multiplayer-hlapi.Runtime.dll' failed

    This is while downloading and installing "Post Processing" version 2.1.6 using Package manager in Unity 2019.1.0f2, this error prevents from using "PostProcessLayer"
     
  7. killerkpoke

    killerkpoke

    Joined:
    Mar 12, 2019
    Posts:
    1
    I got the same issue, after i done the TextMeshPro error. I just did the following :
    In Unity go to Window -> Package Manager, Find MultiPlayer HLAPI, then delete it, and reinstall.
    When i first tried i installed older version (1.0.0), then i uninstalled, and reinstalled the normal version.
    After i run the unity project normally and it worked.
    Hopefully helped.
     
  8. RikiKlein

    RikiKlein

    Joined:
    Dec 14, 2018
    Posts:
    14
    This worked for me. Thanks.
     
  9. unity_TNjVCL1wmrIMKw

    unity_TNjVCL1wmrIMKw

    Joined:
    Apr 29, 2019
    Posts:
    1
    I got the same issue, I just did the following :
    In Unity go to Window -> Package Manager, Find MultiPlayer HLAPI, then delete it, and reinstall.
    After i run the unity project normally and it worked.
    Hopefully helped.
     
    seb_krueger likes this.
  10. seb_krueger

    seb_krueger

    Joined:
    Jan 4, 2019
    Posts:
    17
    I got a complete project in a local git repo and got the same issue (MultiPlayer HLAPI).
    Removing / installing ot from package manager did it for me.
     
    MagnusBoll likes this.
  11. MagnusBoll

    MagnusBoll

    Joined:
    Jun 18, 2015
    Posts:
    1
    Works for me as well. Thanks