System.IO.FileLoadException: Could not load file or assembly

The following error message indicates that the activity version cannot be loaded for some reason

System.IO.FileLoadException: Could not load file or assembly
  1. Check whether the activity version used is located in the correct format inside the activity folder of the AM Composer and e.g. is not nested: ...\Activities\AM.Core.Activities.1.3.1\AM.Core.Activities.1.3.1DLL_Unblock.png
  2. Check if DLLs are blocked. This might be the case if the activity version used was downloaded. There are two possible ways to solve this:
    1. Right click on the DLL, Properties, Unblock button
    2. Start Windows "Powershell" from inside the file explorer and use the command "get-childitem "C:\AnotherMonday\Activities\ AM.Core.Activities.xxxxs" | fire unblock-file" (for more details you can have a look at https://stackoverflow.com/a/45221477/5066962)

The DLLs should no longer be blocked and can be used as normal.

 

Was this article helpful?
0 out of 0 found this helpful