I have an ASP.NET Core Web API. When I run it in Visual Studio with IIS express, Windows authentication works fine.
However, when I deploy the API to IIS, it fails to use Windows authentication. I tried enabling Windows authentication, ASP.NET impersonation and disabled anonymous.
I've also changed the pool to various such as system, network etc. In addition, I changed the API from a console app to a library. Still to no avail.
This API used to work fine on .NET 6 and Windows 7. But since moving to Windows 10 and .NET 8, I can't get Windows authentication to work. Everything is on a single dev machine.
Would very much appreciate some pointers.