Identity Name

  • Thread starter Thread starter Andrew Robinson
  • Start date 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,
 
Back
Top