I have a .net core mvc application where i implemented azure ad authentication. Im using .net core 3.1. Im pretty sure the azure ad part is properly implemented as it runs well on visual studio. When i try to run my app on IIS i gives me this error as shown below. However, if i enable Anonymous Authentication on IIS the app works well as expected and i don’t get the error 401.2.
Image of Http Error 401.2
I want my app to run on IIS without this error even after disabling Anonymous Authentication on IIS, how can i do that so? I cannot enable Windows Authentication also as it by passes my azure ad authentication.
Aashita is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.