Search Issue Tracker

Fixed in 2020.1

Votes

0

Found in

2018.1.0a5

2019.3.0b9

Issue ID

1196416

Regression

Yes

"Could not load file or assembly" error when assembly dependency is in another folder

Scripting

-

How to reproduce:
1. Open the attached project
2. Reimport the System.IO.Pipelines.dll file.

Actual result: Errors are thrown.
Expected result: No errors are thrown.

Reproducible with: 2020.1.0a13, 2019.3.0b11, 2019.2.13f1, 2018.4.13f1, 2018.2.21f1, 2018.1.9f1, 2018.1.0a5.
Regression introduced in: 2018.1.0a5.
Not reproducible with: 2017.4.34f1, 2018.1.0a1, 2018.1.0a4.

Notes:
- The errors are caused because System.IO.Pipelines has references to Libs/System.Buffers and they are in a separate folders.
- The errors:
Error: Could not load signature of System.IO.Pipelines.PipeCompletionCallbacks:.ctor due to: Could not load file or assembly 'System.Buffers,
Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. assembly:System.Buffers, Version=4.0.2.0,
Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 type:<unknown type> member:(null) signature:<none>

Unloading broken assembly Assets/System.IO.Pipelines.dll, this assembly can cause crashes in the runtime

  1. Response avatar

    Resolution Note (fix version 2020.1):

    The issue is the references to System.Buffers.dll
    References in a DLL that is strong named needs to exact match. In this case System.IO.Pipelines.dll references System.Buffers.dll(Version 4.0.2.0), where the System.Buffers.dll version in the project is 4.0.3.0.
    That it works when in the same folder seem like a bug in Mono that we will investigate.
    We will add better information about this so its clear what version we expect

Comments (2)

  1. 544265d921496fb350569e19834a79f7?d=mm

    Lex3425

    Apr 25, 2020 19:50

    Hmm. I have not run into any issue however I could be missing additional details or I'm overlooking something. But haven't had any issues when running on 2020.1.0a13 or 2019.3.0b1. Always looking to avoid issues that could lead to effecting the smoothness with interacting with the website https://www.handymanportlandmaine.com that we manage.

  2. 77965a5771b54652971b6a9a9a813cef?d=mm

    Bortos

    Feb 21, 2020 06:45

    Any new information? The issue is marked as fixed in 2020.1. I have tested on 2020.1.0a23 and this still seems to be an issue.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.