Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

UserNotFoundException on ProfileRedirection from userdisp.aspx to person.aspx

$
0
0

UserNotFoundException on ProfileRedirection from userdisp.aspx to person.aspx

Context:
- SharePoint 2013
- AD authentication and FBA authentication.

Issue: I am unable to see the profile of FBA users, when I click on the user's name from any site collection. i.e if I go to any SP group and click on any user , the _layouts/15/userdisp.aspx is throwing below error:

DelegateControl: Exception thrown in OnFormInit() method of child control for ControlId='ProfileRedirection'. Exception: Microsoft.Office.Server.UserProfiles.UserNotFoundException: An error was encountered while retrieving the user profile.
 at Microsoft.Office.Server.UserProfiles.UserProfileCache.GetUserData(UserProfileManager objManager, Nullable`1 recordId, Guid gAcct, String strAcct, Byte[] bSid, String strEmail, Boolean doNotResolveToMasterAccount)
 at Microsoft.Office.Server.UserProfiles.UserProfile.RetrieveUser(String strAcct, Guid gAcct, Byte[] bSid, Nullable`1 recordId, Boolean doNotResolveToMasterAccount, Boolean loadFullProfile, Boolean loadColleagueRecordIds, String strEmail)
 at Microsoft.Office.Server.UserProfiles.UserProfile..ctor(UserProfileManager objManager, String strAcct, Boolean doNotResolveToMasterAccount, Boolean forceUserIsSelf, Boolean loadFullProfile, Boolean loadColleagueRecordIds, String strEmail)
 at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName, Boolean doNotResolveToMasterAccount, Boolean loadFullProfile, Boolean loadColleagueRecordIds)
 at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName, Boolean doNotResolveToMasterAccount)
 at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName)
 at Microsoft.SharePoint.Portal.WebControls.MySiteRedirectionUserControl.RedirectIfNecessary(SPListItem user)
 at Microsoft.SharePoint.Portal.WebControls.MySiteRedirectionUserControl.OnFormInit(Object objOfInterest)
 at Microsoft.SharePoint.WebControls.DelegateControl.CallFormInitForChildren(Object objOfInterest)

Application error when access /_layouts/15/userdisp.aspx, Error=An error was encountered while retrieving the user profile.
 at Microsoft.Office.Server.UserProfiles.UserProfileCache.GetUserData(UserProfileManager objManager, Nullable`1 recordId, Guid gAcct, String strAcct, Byte[] bSid, String strEmail, Boolean doNotResolveToMasterAccount)
 at Microsoft.Office.Server.UserProfiles.UserProfile.RetrieveUser(String strAcct, Guid gAcct, Byte[] bSid, Nullable`1 recordId, Boolean doNotResolveToMasterAccount, Boolean loadFullProfile, Boolean loadColleagueRecordIds, String strEmail)
 at Microsoft.Office.Server.UserProfiles.UserProfile..ctor(UserProfileManager objManager, String strAcct, Boolean doNotResolveToMasterAccount, Boolean forceUserIsSelf, Boolean loadFullProfile, Boolean loadColleagueRecordIds, String strEmail)
 at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName, Boolean doNotResolveToMasterAccount, Boolean loadFullProfile, Boolean loadColleagueRecordIds)
 at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName, Boolean doNotResolveToMasterAccount)
 at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName)
 at Microsoft.SharePoint.Portal.WebControls.MySiteRedirectionUserControl.RedirectIfNecessary(SPListItem user)
 at Microsoft.SharePoint.Portal.WebControls.MySiteRedirectionUserControl.OnFormInit(Object objOfInterest)
 at Microsoft.SharePoint.WebControls.DelegateControl.CallFormInitForChildren(Object objOfInterest)
 at Microsoft.SharePoint.ApplicationPages.UserDisplayPage.OnInit(EventArgs evtargs)
 at System.Web.UI.Control.InitRecursive(Control namingContainer)
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Troubleshooting done so far:
1.The user profile is existing for the users and I can see the profils from Central Admin. The personal site collection already exists and if I copy the url from Site Collection list in central admin, and paste it into a browser, it works fine.
2.The issue is occurring only for FBA users and redirection is working perfectly for windows AD users (ie redirected to profile page)


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>