I am getting following error when I run an exe referencing a particular DLL.
Could not load file or assembly ‘XYZ.ABC.DEF, Version=1.0.3801.24033, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. Access is denied.
Could the above error be due to XYZ.ABC.DEF.DLL being corrupt? What could be wrong with the DLL to cause this error. We just tried to use Reflector tool on this DLL and we could not reflect it.
Please help.
“Access is denied” usually means that you don’t have permissions to read a file. This could happen if the dll is in a protected system location (even if you are an administrator you can get “access denied” on files within a different user’s account folders, for example)
Make sure you have admin privileges, and try copying the dll and its dependencies to a folder that you have full access permissions for.