I'm currently not able to set up Azure AD B2C on .NET Web Forms
I could set up in MVC or .NET Core in no more than 5 minutes but we have a legacy and I can't do this in another tech.
I have followed this reference and just changed to my current config and got 500 error, once I click sign up or sign in buttons.
<add key="ida:Tenant" value="aicdb2c.onmicrosoft.com" />
<add key="ida:ClientId" value="{applicationId}" />
<add key="ida:AadInstance" value="https://login.microsoftonline.com/{0}/v2.0/.well-known/openid-configuration?p={1}" />
<add key="ida:RedirectUri" value="http://localhost:58851/" />
<add key="ida:SignUpPolicyId" value="B2C_1_sign_up" />
<add key="ida:SignInPolicyId" value="B2C_1_sign_in" />
<add key="ida:UserProfilePolicyId" value="B2C_1_edit_profile" />
The message error is not helpful. It's just a generic message: "The page cannot be displayed because an internal server error has occurred".
After getting this message, if I hit enter in the address bar (http://localhost:58851/), I can access the page normally. Otherwise, I just get a blank page with this message.
I have Googled a lot and no luck.
I appreciate any help.





