I have been given a .Net assembly to try and use within our OE10.2B environment but am having some problems using it.
If I try to add the assembly via Tools > Assembly References > Local Assemblies then I receive the error 'Not a valid assembly'.
If I use System.Reflection.Assembly:Load(SEARCH("assembly.dll")), then I get this error:
"System.IO.FileLoadException: could not load file or assembly ‘assembly.dll’ or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)."
I have another machine with OE11.6 and I have no issues using the assembly in that environment, and after doing some more investigation I believe the assembly has dependencies on .net 4.0, so are there any ideas how I might get this working in OE10.2b?
Many Thanks
Thanks for the quick reply
Hmmm... I would have thought you'd get a different error for this case.
You could install .NET 4.0 or 4.5 on the machine and configure the app to use it. See here:
msdn.microsoft.com/.../ff602939(v=vs.110).aspx
Also, always make sure that the .dll isn't blocked (Check file Properties and look for "Unblock" button).