Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext] not able to load #254

Open
fohnbit opened this issue Jul 26, 2023 · 2 comments

Comments

@fohnbit
Copy link

fohnbit commented Jul 26, 2023

Hello!

I get this error, after set the login email:
`Ausnahme beim Aufrufen von "LoadFrom" mit 1 Argument(en): "Die Datei oder Assembly "file:///C:\Program Files\WindowsPowerShell\Modules\AzureAD\2.0.2.180\Microsoft.IdentityModel.Clients.ActiveDirectory.dll" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht
finden."
In C:\Users\UserXY\Downloads\powershell-intune-samples-master\SettingsCatalog\SettingsCatalog_Export.ps1:87 Zeichen:1

  • [System.Reflection.Assembly]::LoadFrom($adal) | Out-Null
  •   + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : FileNotFoundException
    
    

Ausnahme beim Aufrufen von "LoadFrom" mit 1 Argument(en): "Die Datei oder Assembly "file:///C:\Program Files\WindowsPowerShell\Modules\AzureAD\2.0.2.180\Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei
nicht finden."
In C:\Users\UserXY\Downloads\powershell-intune-samples-master\SettingsCatalog\SettingsCatalog_Export.ps1:89 Zeichen:1

  • [System.Reflection.Assembly]::LoadFrom($adalforms) | Out-Null
  •   + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : FileNotFoundException
    
    

Der Typ [Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext] kann nicht gefunden werden. Stellen Sie sicher, dass die Assembly, die diesen Typ enthält, geladen wird.`

Its not able to load "Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext]".
How can i fix this issue?

@michalorac
Copy link

@fohnbit install older module AzureAD, which contain missing files

Install-Module -Name AzureAD -RequiredVersion 2.0.2.140

@tenglishWGGS
Copy link

@michalorac This is a good workaround but isn't the reason this is failing due to the Microsoft.IdentityModel.Clients.ActiveDirectory package being depreciated?(https://www.nuget.org/packages/Microsoft.IdentityModel.Clients.ActiveDirectory)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants