Troubleshooting
This article groups tips & tricks to help you troubleshoot EntraCP if it’s not working as expected.
Inspect the SharePoint logs
EntraCP records all its activity in the SharePoint logs, under Product / Area “EntraCP”. It records a lot of information and can be managed with PowerShell:
You can use ULS Viewer to inspect the logs.
Use the built-in troubleshooting page
EntraCP comes with a built-in troubleshooting page, located in 16\TEMPLATE\ADMIN\EntraCP\TroubleshootEntraCP.aspx
.
It is primarily designed to:
- Validate that the assembly bindings were correctly set in the
machine.config
file. - Test the connection to your Microsoft Entra ID tenant, without using the EntraCP configuration.
It is written entirely with inline code, which means that you can easily modify as you need.
For security reasons, by default it can be called only from the central administration site, but it you can copy the page anywhere under 16\TEMPLATE\LAYOUTS
, and you’ll be able to call it from any SharePoint site.
Test the connectivity with Microsoft Graph
EntraCP may fail to connect to Microsoft Graph for various reasons. The PowerShell script below connects to the typical Microsoft Graph endpoints and may be run on the SharePoint servers to test the connectivity (set or remove the proxy settings depending on your configuration):
Obtain the access token using PowerShell
This PowerShell script requests an access token to Microsoft Graph, as done by EntraCP (set or remove the proxy settings depending on your configuration):
Inspect the traffic to Microsoft Graph
You can intercept the traffic between EntraCP (running in SharePoint) and Microsoft Graph using Fiddler Classic as a local proxy.
Once Fiddler was installed locally and its root certificate trusted (mandatory), you can intercept the traffic by updating the web.config file of your SharePoint site as below:
Important
To view the traffic in Fiddler, make sure to set the filter to "All Processes" or "Non-Browsers" (in the bottom left).