Question
Answer and Explanation
The AADB2C90047 error code in Azure Active Directory B2C (Azure AD B2C) typically indicates a script error that prevents a page from loading correctly. Several factors can contribute to this, including:
1. Custom HTML/JavaScript Issues:
If you've customized the user interface with custom HTML or JavaScript, there may be syntax errors, compatibility issues, or incorrect references to resources that prevent the page from loading. Debugging your custom code is crucial. Examine browser console logs for specific error messages.
2. Content Delivery Network (CDN) Issues:
If you're using a CDN to host static assets (like JavaScript or CSS files), ensure the CDN is configured correctly and that the files are accessible. CDN outages or misconfigurations can cause scripts to fail to load.
3. Browser Compatibility Problems:
Certain JavaScript features or libraries may not be fully compatible with older browsers. Test your application across different browsers to identify and address compatibility issues.
4. Policy Configuration Errors:
Incorrectly configured policies in Azure AD B2C can sometimes lead to unexpected script errors. Review your policies and ensure that the settings are valid and consistent with your requirements.
5. Dependency Conflicts:
If you're using multiple JavaScript libraries, they might have conflicting dependencies. Ensure that the versions of the libraries you're using are compatible with each other.
6. Cross-Origin Resource Sharing (CORS) Issues:
If your scripts are making requests to resources on a different domain, ensure that CORS is properly configured to allow cross-origin requests. Incorrect CORS settings can prevent scripts from loading.
7. Azure AD B2C Service Issues:
Although rare, there may be temporary issues with the Azure AD B2C service itself. Check the Azure status page for any reported outages or service disruptions.
8. Missing or Incorrect Script References:
Double-check that all required JavaScript files are correctly referenced in your HTML and that the paths are accurate. A simple typo in a script reference can prevent the script from loading.
To troubleshoot this issue effectively, use browser developer tools to examine console errors, network requests, and the source code. Also, carefully review any recent changes you've made to your custom HTML, JavaScript, or Azure AD B2C policies.