We recently upgraded OneIdentity to 8.1, and one of our custom scripts started failing with:
System.IO.FileLoadException: Could not load file or assembly 'PhoneNumbers, Version=8.8.11.0, Culture=neutral, PublicKeyToken=cad7840cee602442' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I checked Software Loader, and the version in the database is 8.10.21.0, which is different from what the script compiled against. I assumed that something got cached and not recompiled internally, so I added a dummy line to the custom script that is failing, recompiled the database and everything is working agian.
However, a few days later (I'm assuming after I made changes to another custom script and recompiled the database again), the same error started appearing. I fixed it again by doing the same thing.
I'm still assuming that there's an issue with how the assemblies are compiled by OneID, but I'm not sure how to fix or diagnose further, any suggestions?