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 Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Answer accepted by question author
  1. Anonymous
    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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.