Identity Name

  • Thread starter Andrew Robinson
  • Start date
A

Andrew Robinson

I am using

string username =
System.Security.Principal.WindowsIdentity.GetCurrent().Name;

to retrieve the current username. This works fine running under the
development server (Cassini) but always returns DOMAIN\ASPNET when running
under IIS 5.1 (Win XP). I have turned on Integrated Authentication and
disabled all others under IIS Admin but still get DOMAIN\ASPNET. Any ideas?

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,112
Latest member
VinayKumar Nevatia
Top