Архив метки: .net

c# Ошибка: System.TypeLoadException: Could not load type ‘System.Security.Claims.ClaimsIdentity’ from assembly mscorlib

c# Ошибка: System.TypeLoadException: Could not load type ‘System.Security.Claims.ClaimsIdentity’ from assembly mscorlib

Решение: установить .Net Framework 4.5

Как узнать .NET тип объектов в Powershell

В Powershell:

PS C:\Users\user> (Get-Acl c:).GetType() 
IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     False    DirectorySecurity                        System.Security.AccessControl.FileSystemSecurity