title: Add-Type load assembly from network UNC share error 0x80131515
body: <p>When you want to add an assembly from a network <a href="http://en.wikipedia.org/wiki/Path_%28computing%29#Uniform_Naming_Convention" rel="nofollow">UNC</a> share using the command:</p>
  
  <pre><code>$scriptPath = Split-Path ($MyInvocation.MyCommand.Path)
  Add-Type -path "$scriptPath\selenium-dotnet\net40\WebDriver.dll"
  </code></pre>
  
  <p>you might face such an error:</p>
  
  <pre><code>Add-Type: Could not load file or assembly 'file:///Z:\A-Backup\Users\Administr
  ator\Desktop\MAXIMO Automatic\selenium-dotnet\net40\WebDriver.dll' or one of it
  s dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515
  )
  At Z:\A-Backup\Users\Administrator\Desktop\MAXIMO Automatic\MAXIMO Automatic.ps
  1:14 char:1
  + Add-Type -path "$scriptPath\selenium-dotnet\net40\WebDriver.dll"
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Add-Type], FileLoadException
      + FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell
     .Commands.AddTypeCommand
  </code></pre>
  
  <p>How can I fix this problem?</p>