title: Cannot load dll assembly in windows 10 (Exception from HRESULT: 0x80131515)
body: <p>I was trying to load the compiled dll assembly of  <a href="https://github.com/JamesNK/Newtonsoft.Json/releases" rel="nofollow">JSON.NET</a>. However I get the following error message:</p>
  
  <pre><code>PS C:\Users\tamas\Desktop\garbage&gt; Add-Type -path .\Newtonsoft.Json.dll
  Add-Type : Could not load file or assembly 'file:///C:\Users\tamas\Desktop\garbage\Newtonsoft.Json.dll' or one of its d
  ependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
  At line:1 char:1
  + Add-Type -path .\Newtonsoft.Json.dll
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Add-Type], FileLoadException
      + FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.AddTypeCommand
  </code></pre>
  
  <p>On a different computer, under windows 7 I was able to do the same thing without any problem. 
  What could be the cause and the solution? </p>
  
  <p>My .NET version:</p>
  
  <pre><code>PS C:\Users\tamas\Desktop\garbage&gt; [System.Environment]::Version
  
  Major  Minor  Build  Revision
  -----  -----  -----  --------
  4      0      30319  42000
  </code></pre>
  
  <p>PowerShell version:</p>
  
  <pre><code>PS C:\Users\tamas\Desktop\garbage&gt; $Host.Version
  
  Major  Minor  Build  Revision
  -----  -----  -----  --------
  5      1      14393  206
  </code></pre>