Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
bbbm
Frequent Visitor

Login-OnPremisesDataGateway is failing

I try to use Login-OnPremisesDataGateway, but after logging in, get this error

MethodInvocationException: Exception calling "AcquireToken" with "6" argument(s): "Could not load type 'System.Security.Cryptography.SHA256Cng' from assembly 'System.Core,
Version=4.0.0.0, Culture=neutral, PublicKeyToken..."

I'm not really sure what to do with that error message!

3 REPLIES 3
amirabedhiafi
Impactful Individual
Impactful Individual

Thanks!  Tried Powershell 5 - and connect-azuread works fine with it.  But when trying Login-OnPremisesDataGateway, am getting a different error at least: 

 

Method invocation failed because [Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext] does not
contain a method named 'AcquireToken'.
At C:\Program
Files\WindowsPowerShell\Modules\OnPremisesDataGatewayHAMgmt\3000.15.18\OnPremisesDataGatewayHAMgmt.psm1:221 char:12
+     return $context.AcquireToken($script:adResource, $script:adClient ...
+            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.