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.