I have deployed my web application on azure cloud.When i try to get identity user using
WindowsIdentity.GetCurrent()
. Name It throws me following exception
System.Security.SecurityException: at System.Security.Principal.WindowsIdentity.KerbS4ULogon(String upn, SafeAccessTokenHandle& safeTokenHandle) at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName, String type) at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName)
Where as this code works fine on my local environment and domain