We have a sharepoint feature which gets activated on 'MySite' creation. We need to get the logged in user's active directory user name in that feature...So we have used HttpContext.Current.User.Identity.User.Name but it throws following exception "System.ArgumentException: Account name cannot be an empty string."
Any idea why is it blank ? Or is there some other way where we can get logged in user's AD user name ??
Appreciate any help.