I have a website hosted in IIS using windows authentication. It works fine. But if I host it as a web application unter a website, windows authentication doesn't work and the authentication window shows and then doesn't go away even if I put in the correct user name and password. The SPN, delegation and IIS settings should be correct, otherwise the website won't work. Only if I deploy it as web application, windows authentication stoped working. Any idea?
I finally found the solution.
After enabling ASP.Net Impersonation on the web application, it works.
Seems like, the web application needs impersonation to get the kerberos ticket from the website.