troubleshooting Question

Retrieving Windows Authenticated UserID from ASP.NET

Avatar of sonus
sonus asked on
.NET ProgrammingMicrosoft Development
12 Comments1 Solution576 ViewsLast Modified:
I've asked a similar question to this before, and essentially the answer was to use Environment.Username.  That works from a desktop application environment, but when I run the component through IIS with ASP.NET, the Username always comes back as "ASPNET" and the UserDomainName always comes back as my computer name.

I have tried using Request.ServerVariables, but it doesn't seem to have the User's authenticated name.  This web app I'm using is only used by users Authenticated on the local network.

My question is, how do I retrieve the username/domain from an web page?


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros