I had the same problem, when trying to load a DLL on a local drive which came from a ZIP from the internet.
The solution was to unlock the ZIP in its file properties. Finally, extracting the DLL again and now it loads without the error. No need to change the machine.config.