Answers for "could not load file or assembly"

1

could not load file or assembly

close and re-open Visual Studio.
Posted by: Guest on June-11-2021
-1

could not load file or assembly

Check if you are referencing an assembly which in turn referencing an old version of unity. For example let's say you have an assembly called ServiceLocator.dll which needs an old version of Unity assembly, now when you reference the ServiceLocator you should provide it with the old version of Unity, and that makes the problem.

May be the output folder where all projects build their assemblies, has an old version of unity.

You can use FusLogVw to find out who is loading the old assemblies, just define a path for the log, and run your solution, then check (in FusLogvw) the first line where the Unity assembly is loaded, double click it and see the calling assembly, and here you go.
Posted by: Guest on March-23-2021

Code answers related to "could not load file or assembly"

Browse Popular Code Answers by Language