Error message after you run the MOSDAL Support Toolkit: "The AD FS Metadata Exchange (MEX) document did not contain the SecurityTokenService section"

Article translations Article translations
Article ID: 2707345 - View products that this article applies to.
Expand all | Collapse all


After you run the Microsoft Online Services Diagnostics and Logging (MOSDAL) Support Toolkit, the following error message is logged in the ADFSDiagnostic.txt diagnostics log file:
The AD FS Metadata Exchange (MEX) document did not contain the SecurityTokenService section.
Note The log file is located in the \Admin_Applications\SSO_Diagnostic_Tests\ folder.

Additionally, when you try to sign in to your Microsoft cloud service such as Office 365, Microsoft Azure, or Windows Intune by using a federated account, rich client application authentication fails when it tries to access services. 


An issue occurred with the AD FS service that prevented it from functioning as expected.


To resolve this issue, restart the AD FS service. If that doesn't resolve the issue, contact Technical Support.


Still need help? Go to the Office 365 Community website or the Azure Active Directory Forums website.


Article ID: 2707345 - Last Review: July 14, 2014 - Revision: 15.0
Applies to
  • Microsoft Azure
  • Microsoft Azure Active Directory
  • Microsoft Office 365
  • Windows Intune
  • CRM Online via Office 365 E Plans
  • Microsoft Azure Recovery Services
  • Office 365 Identity Management
o365 o365a mosdal4.5 o365022013 o365e o365m KB2707345

Give Feedback


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from