I have a customer with two PCs in a domain. I use sevenzipsharp in a project which I load via LoadAssembly because the project/DLL is used from an external scripting language. The two PCs are (as far as the customer told me) configured the same and the users on those systems have the same user rights. On one PC the loading is successful on the other PC the loading fails. To reproduce the error I used a simple PowerShell command
Add-Type -path ".\SevenZipSharp.dll"
the exception that I get is "Could not load file or assembly … or one of its dependencies"
As far as I can see the References are mscorlib
, System
, System.Configuration
, kernel32.dll
, System.Core
and System.Xml
. Those dependencies should all be available on the System since .Net 4.5 is installed.
Are there any user rights or configuration that could block LoadAssembly(C#)/Add-Type(PowerShell)? Because the source code seems to be fine since it is widely used. What could block the LoadAssembly?