Q:

Reading Windows credentials

Have just deployed an ASP.NET app (VB) to a local IIS server (the same machine the code was developed on) and I'm having trouble reading the Windows authentication details.
When running purely in debug mode I can read them fine using Me.Context.User.Identity.Name, Request.ServerVariables("Auth_User") or Request.LogonUserIdentity.Name, but when this runs in IIS - even if I attach Visual Studio to it and run in debug mode, the first two give blank results and the third gives NT AUTHORITY\IUSR (the anonymous user identity).
Just to stress, I don't want IIS to authenticate these details automatically, I just need to be able to read them in the code.
I have tried enabling and disabling Anonymous authentication and Windows authentication in IIS but no change.
Can anyone suggest what else I should check?
Thanks for your help!

A:

In my opinion you have to disable anonymous authentication to get the identity informations.

