title: Why can't I load System.Security.Cryptography.ProtectedData when it's on the same directory as the executable
body: <p>I'm trying to run a deployed .net application on a clean machine, with .net core and .net framework installed, but I'm getting this error:</p>
  
  <p><a href="https://i.stack.imgur.com/5m2ui.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5m2ui.jpg" alt="enter image description here"></a></p>
  
  <p>It seems to be looking for <code>System.Security.Cryptography.ProtectedData</code> inside the path <code>runtimes/win/lib/netstandard2.0/</code></p>
  
  <p>I copied the dll file to the directory and it worked. Any idea why it doesn't look for the dll on the same directory as the executable?</p>