title: C#: How to load assembly from GAC?
body: <p>I have "mycomp.myassembly.dll" in GAC but Load and LoadFrom throws file not found exception and LoadWithPartialName returns null. I'm doing the following:</p>
  
  <pre><code>    AssemblyName name = new AssemblyName();
      name.Name = "mycomp.myassembly.dll";
  
      Assembly assembly = Assembly.Load(name);
  </code></pre>
  
  <p>fails with FileNotFound for mycomp.myassembly.dll file, and</p>
  
  <pre><code>    Assembly assembly = Assembly.Load("mycomp.myassembly.dll");
  </code></pre>
  
  <p>fails with exactly the same message.</p>
  
  <p>I double checked that assembly is in GAC (and even did gacutil /if for it again) and it does work in all other cases, I just unable to load it myself.</p>
  
  <p>What am I doing wrong here?
  Do I miss something?</p>