Ich habe versucht, die kompilierte Dll-Assembly von JSON.NET zu laden. Jedoch habe ich die folgende Fehlermeldung erhalten:Dll-Assembly kann nicht in Windows 10 geladen werden (Ausnahme von HRESULT: 0x80131515)
PS C:\Users\tamas\Desktop\garbage> 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
auf einem anderen Computer unter Windows 7 konnte ich die gleiche Sache ohne Probleme tun. Was könnte die Ursache und die Lösung sein?
Meine .NET-Version:
PS C:\Users\tamas\Desktop\garbage> [System.Environment]::Version
Major Minor Build Revision
----- ----- ----- --------
4 0 30319 42000
Powershell-Version:
PS C:\Users\tamas\Desktop\garbage> $Host.Version
Major Minor Build Revision
----- ----- ----- --------
5 1 14393 206
danke! Ihre Antwort hat mir geholfen, die Lösung zu finden. Siehe meine Antwort auf die Frage. – ThomasMX