assembly loading just after installing it in GAC <p>I have an program which calls a msi installer. After the msi package is installed successfully I tried to load a assembly which was added by the msi package in the GAC. I am not able to load the assembly but this particular assembly is being added to the GAC. When i run the program for the second time the assembly gets loaded properly. here is the pseudocode</p> <pre><code>load assembly(assemblyname) { if(!Assembly.load(assemblyname)) msi.install(); Assembly assembly =Assembly.load(assemblyname) if(assembly == null) console.writeline("assembly not loaded"); } </code></pre> <p>If the msi package is not installed already , i always get assembly not loaded for the first time when I run this function. Somehow I think this is related to the GAC list which is present before the program gets executed. Is there a way where I can reload this?</p>