"Server Error in '/' Application" error when you try to sign in to an app that is set up for Azure AD B2C
Response status code does not indicate success: 404 (Not Found)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found)
Source Error: An unhandled exception occurred during the execution of the current web request. Information regarding the origin and locations of the exception can be identified using the exception stack trace below.
[IOException: Unable to get document from: https://login.microsoftonline.com/contoso.onmicrosoft.com/.well-known/openid-configuration?p=Policyname]
- Open the Web.config file for the app.
- In the Web.config file, verify that the app key "ida:SignUpPolicyId" exists.
- Replace the value of the app key with the name of the sign-up policy that you provided in the Azure AD B2C admin portal.
The changed part of the file will resemble the following:<appSettings>
<add key="ida:SignUpPolicyId" value="B2C_Signup_Policy_Name">
Article ID: 3092588 - Last Review: 09/17/2015 23:59:00 - Revision: 1.1
- kbexpertiseadvanced kbsurveynew kbtshoot KB3092588