Azure AD 500 - Internal server error

Zack 41 Reputation points
2021-11-03T20:09:20.583+00:00

I've been following this guide: https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-v2-aspnet-webapp

Localhost works perfectly. I sign in and sign out with no issues, but when I publish this over to an IIS after re-configuration for the IIS, I get a 500 - Internal server error

I made sure that the IIS has an SSL certificate, application pool is setup correctly, app registration in Azure AD is all setup correctly.

I've switched the localhost to a DNS that is set for staging, which has a naming example of "https://dev.staging.org/admin".

I made sure my redirectUri was set correctly.

I was able to setup ADFS before with no problems. I don't know why I'm having such a hard time setting up the Azure AD login.

The IIS is on a Windows 2016 server and the IIS is version 10.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,466 questions
{count} votes

Accepted answer
  1. James Hamil 21,621 Reputation points Microsoft Employee
    2021-11-03T21:10:07.017+00:00

    Hi @Zack , did you make any changes from the guide? Also, have you used any threads / articles to troubleshoot this? There's many things that could have gone wrong so I'm trying to narrow it down. We may need to open a support ticket to get a look at your environment. Please let me know and I can help you further.

    Best,
    James

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful