Suzanne Cook's .NET CLR NotesCommon Language Runtime DeveloperLoadFile vs. LoadFrom- September 20, 2003 Be careful - these aren't the same thing. LoadFrom() goes through Fusion and can be redirected to another assembly at a different path but with that same identity if one is already loaded in the LoadFrom context. LoadFile() doesn't bind through Fusion at all - the loader just goes ahead and loads exactly what the caller requested. It doesn't use either the Load or the LoadFrom context. So, LoadFrom() usually gives you what you asked for, but not necessarily. LoadFile() is for those who...http://blogs.msdn.com/suzcook/archive/2003/09/19/loadfile-vs-loadfrom.aspx LoadFrom's Second Bind- September 17, 2003 Pre-v2, when you load an assembly by path through Fusion (LoadFrom(), ExecuteAssembly(), etc.), it can actually cause two binds, not just one. The first bind loads the file at the given path. If that is successful, another bind is done with the display name of that assembly to see if it's available in the Load context. If it's not available, the LoadFrom() call is still successful - we throw away the results of the second bind. If it is available, we check the path returned from the first bind..http://blogs.msdn.com/suzcook/archive/2003/09/16/loadfrom-s-second-bind.aspx |