Well, I'm happy to get a star, but the problem persists for me!
On the same server, we have dozens of classic asp pages that use Request.ServerVariables("AUTH_USER"). They function normally. So we know that the IIS settings are okay. I set up this test:
dim x as string
x= [something]
labelx.text= x
For the text within brackets, I have tried each of these variations~
User.Identity.Name.ToString()
User.Identity.Name
context.User.Identity.Name.ToString()
HttpContext.Current.Request.UserHostName.ToString() *
HttpContext.Current.User.Identity.Name.ToString()
HttpContext.Current.Request.UserAgent.ToString *
ClientID.ToString() **
Request.ServerVariables("remote_user")
Request.ServerVariables("LOGON_USER")
Request.ServerVariables("AUTH_USER").ToString()
Request.ServerVariables("AUTH_USER")
I built each of these without causing an error. Most did not return anything. The variations with one asterisk returned something other than the username. The variation with two asterisks failed when I ran it.
I am putting the code into the .aspx page's page_load event.