web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Problem With Gateway C...
Power Apps
Answered

Problem With Gateway Connection (Sharepoint 2013)

(0) ShareShare
ReportReport
Posted on by 4

Hello I have a problem. My connection with the sharepoint server broken.

 

The error:

Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.21.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

 

Problem2

 

 

Problem3

 

 

 

So in the last day this aplication work perfectly without error:

 

 Problem

 

 

 

 

What should I do to resolve this connection problem.
Yesterday everything was working properly and suddenly it completely lost the connection and never worked again.

I already installed a new gateway and still give the same type of connection error.

Can someone give me some help?

 

Categories:
I have the same question (0)
  • Verified answer
    v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi rbaptista,

     

    "Microsoft.IdentityModel.Clients.ActiveDirectory" is related with Active Directory Authentication Library, if you have this installed before, then please update it to the last version.

    If this is not the case, then we need to check with the Gateway logs:

    Collecting logs from the gateway configurator

    Regards

  • rbaptista Profile Picture
    4 on at

    Hi Michael_Shao,

     

    Thanks for your help, but the problem continues.

    When I try to install the package in any way this error always occurs

     

    erropowershell.png

  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi rbaptista,

     

    The package can't be installed under Windows PowerShell, To install Active Directory Authentication Library, we should run the following command in the Package Manager Console.

    I suspect this should not be related with the server side, please take a look into the Gateway logs, check if we could find any helpful information there.

    I will try to report this from my side.

    Thanks for your patience and understanding.

    Regards

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard