Relative Content

Tag Archive for iisazure-active-directoryasp.net-core-3.1

Asp.net core app running on IIS gives Http Error 401.2-Unauthorize

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.