when i run application directly it run successfully
clientMachineName =System.DirectoryServices.AccountManagement.UserPrincipal.Current.DisplayName;
using this i get looged user name
but when i go through IIS it gives following error
Unable to cast object of type 'System.DirectoryServices.AccountManagement.GroupPrincipal' to type 'System.DirectoryServices.AccountManagement.UserPrincipal'.
please Help
Thank u