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

Notifications

Announcements

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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard