Azure AD 500 - Internal server error

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

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.

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,560 questions
{count} votes

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

    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

    No comments

0 additional answers

Sort by: Most helpful