UNC Path — Could not load assembly — Failed to grant minimum permission requests.
The following error can occur when trying to load ChilkatDotNet2.dll from a UNC path located on another computer.
Could not load file or assembly 'ChilkatDotNet2, Version=220.127.116.11, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)
It is because the .NET runtime does not give full trust to the external UNC location. You must do one of the following:
- Move the ChilkatDotNet2.dll to a directory on the local computer.
- Grant full trust to the remote directory.
- Grant full trust to the ChilkatDotNet2.dll