Additional information: Access to the path 'XXX' is denied.
The reason is that the file is in use. So you can use LOAD instead LOADFROM, as shown below:
Assembly.Load(File.ReadAllBytes(path));
Seyed Hamed Vahedi
Wed, 2 January, 2019