1 out of 1 rated this helpful - Rate this topic

Assembly.LoadFrom Method

Loads an assembly.
Name Description
Assembly.LoadFrom (String) Loads an assembly given its file name or path.

Supported by the .NET Compact Framework.

Assembly.LoadFrom (String, Evidence) Loads an assembly given its file name or path and supplying security evidence.
Assembly.LoadFrom (String, Evidence, Byte[], AssemblyHashAlgorithm) Loads an assembly given its file name or path, security evidence hash value, and hash algorithm.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
LoadFrom() can't load assmeblies with the same name from two differrent locations
Calling LoadFrom("c:\folder X \assembly.dll") followed by calling LoadFrom("c:\folder Y \assembly.dll") won't load assembly.dll from the "c:\folderY" unless assembly.dll is strongly named. LoadFrom() won't fail either in this case. Instead it will return the reference to "c:\folderX\assembly.dll". This behavior causes issues when running MSI installer packages built in Visual Studio in upgrade mode:
http://support.microsoft.com/kb/555184/
http://support.microsoft.com/kb/906766