Windows Authentication in IIS Express prompts credentials endlessly

Croaker 5 Reputation points
2023-12-21T23:08:37.1166667+00:00

I am trying to set up Windows Authentication for a .NET Framework 4.7.2 MVC application. When I run the app in Visual Studio (IIS Express), the browser (Chrome or Edge) prompts repeatedly for my credentials but never accepts (lets me view the page) or rejects them (shows a forbidden message etc.).

 

I have set the authentication mode to Windows in the web.config. And enabled Windows Auth and disabled Anonymous Auth in the project properties pane. How can I get it to evaluate the credentials properly?

Developer technologies | Visual Studio | Other
Developer technologies | ASP.NET | Other
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.