Assembly.LoadFrom Method
.NET Framework 3.0
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. |
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
http://support.microsoft.com/kb/555184/
http://support.microsoft.com/kb/906766
- 2/9/2007
- Vlad Hrybok