title: Asp.net Core Load Assembly
body: <p>I am tring to load some .dll files from a folder:</p>
  
  <pre><code>    var fileNames = Directory
          .GetFiles(path, "*.dll", searchOption);
      var assemblyNames = fileNames
          .Select(AssemblyLoadContext.GetAssemblyName);
  
      List&lt;Assembly&gt; assemblies = new List&lt;Assembly&gt;();
      foreach (AssemblyName assemblyName in assemblyNames)
      {
          assemblies.Add(Assembly.Load(assemblyName));
      }
  </code></pre>
  
  <p>But somehow the assembly cannot be loaded:
  <code>FileNotFoundException, Could not load file or assembly [...] The system cannot find the file specified.</code></p>
  
  <p>How is this possible, because the file is definitely there?</p>
  
  <p>I can provide additional information, if you need more background.</p>