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

Connect-SFCluster -AzureActiveDirectory fails with Could not load file or assembly Microsoft.IdentityModel.Clients.ActiveDirectory #72

Open
johncrim opened this issue Jun 16, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@johncrim
Copy link

johncrim commented Jun 16, 2019

Describe the bug
Assembly loading error when using Connect-SFCluster on Powershell Core:

Import-Module Microsoft.ServiceFabric.Powershell.Http

Connect-SFCluster -ConnectionEndpoint $sfEndpoint -AzureActiveDirectory -ServerCommonName $sfCommonName

Fails with:

Connect-SFCluster : Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=3.19.8.16603, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621)
At C:\src\scraps.local\test-sf-client.ps1:11 char:1
+ Connect-SFCluster -ConnectionEndpoint $sfEndpoint -AzureActiveDirecto ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Connect-SFCluster], FileLoadException
+ FullyQualifiedErrorId : ConnectClusterErrorId,Microsoft.ServiceFabric.Powershell.Http.ConnectClusterCmdlet

I'm pretty sure this isn't an environment-specific issue. I have uninstalled and reinstalled the Microsoft.ServiceFabric.Powershell.Http module.

Expected behavior
Successful connection and no exception.

@johncrim
Copy link
Author

Note that this error occurs on PS Core 6.2; doesn't occur on Windows PS.

@amanbha amanbha added the bug Something isn't working label Jun 18, 2019
@amanbha amanbha self-assigned this Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants