I have to access the user profiles anonymously.
I have used-
SPSecurity.RunWithElevatedPrivileges(delegate()
to access the user profiles anonymously.
While accessing the user profiles getting the Error as:
System.UnauthorizedAccessException: The user could not be authenticated to the Web site being accessed.
How to fix it?