<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Loader on naveen srinivasan</title><link>https://naveensrinivasan.com/categories/loader/</link><description>Recent content in Loader on naveen srinivasan</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 12 Jul 2010 21:31:40 +0000</lastBuildDate><atom:link href="https://naveensrinivasan.com/categories/loader/index.xml" rel="self" type="application/rss+xml"/><item><title>Load the same Assembly from GAC and private bin path in .NET</title><link>https://naveensrinivasan.com/?p=966/</link><pubDate>Mon, 12 Jul 2010 21:31:40 +0000</pubDate><guid>https://naveensrinivasan.com/?p=966/</guid><description>&lt;p&gt;This post is all about exploring the CLR loader to load an assembly from GAC and from private bin path. This is not possible because, if an assembly is loaded from GAC and if the code uses Assembly.LoadFrom to load the same assembly, then the loader would return the assembly that has already been loaded from the GAC.&lt;/p&gt;&#10;&lt;p&gt;Here is the ClassLibrary2 code&lt;/p&gt;&#10;&lt;p&gt;[sourcecode language=”csharp”]&lt;/p&gt;&#10;&lt;p&gt;using System;&lt;/p&gt;&#10;&lt;p&gt;namespace ClassLibrary2&lt;/p&gt;&#10;&lt;p&gt;{&lt;/p&gt;&#10;&lt;p&gt;public class Class1&lt;/p&gt;</description></item></channel></rss>