title: DinkToPdf Net Core not able to load DLL files
body: <p>I am trying to generate PDFs from HTML SQL server database using <a href="https://github.com/rdvojmoc/DinkToPdf" rel="nofollow noreferrer">DinkToPdf</a> library.</p>
  <p>In the startup file I have added:</p>
  <pre><code>var context = new CustomAssemblyLoadContext();
  context.LoadUnmanagedLibrary(Path.Combine(Directory.GetCurrentDirectory(), &quot;libwkhtmltox.dll&quot;));
  </code></pre>
  <p>The line gives me this error on launching the web app:</p>
  <blockquote>
  <p>DllNotFoundException: Unable to load DLL 'C:\Program Files\IIS Express\libwkhtmltox.dll' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)</p>
  <p>System.Runtime.Loader.AssemblyLoadContext.InternalLoadUnmanagedDllFromPath(string unmanagedDllPath)</p>
  <p>DllNotFoundException: Unable to load DLL 'C:\Program Files\IIS Express\libwkhtmltox.dll' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)</p>
  </blockquote>