Assembly.LoadFile Method (String)
Loads the contents of an assembly file on the specified path.
Assembly: mscorlib (in mscorlib.dll)
The path argument is not an absolute path.
The path parameter is null.
A file that was found could not be loaded.
The path parameter is an empty string ("") or does not exist.
path is not a valid assembly.
Version 2.0 or later of the common language runtime is currently loaded and path was compiled with a later version.
Use the LoadFrom method does. is useful in this limited scenario because LoadFrom cannot be used to load assemblies that have the same identities but different paths; it will load only the first such assembly.method to load and examine assemblies that have the same identity, but are located in different paths. does not load files into the load-from context, and does not resolve dependencies using the load path, as the
to load an assembly with evidence. Associated enumeration: SecurityPermissionFlag.ControlEvidence
Available since 1.1