Hi, I try to get email address from AD by using System.DirectoryServices.AccountManagement.UserPrincipal.Current.EmailAddress.
It works in my local (VS2008) but I got error 'system.DirectoryServices.AccountManagement.GroupPrincipal' to type 'System.DirectoryServices.AccountManagement.UserPrincipal' when I try it on my web server.
I am using IIS 6.0 with virtual directory and I have set it to window authentication on the virtual directory.
Also in my web.config, I set <authentication mode="Windows"> and added the site to my local intranet sites.
Any help is greatly appreciated.