SharePoint 2010 MySite My Profile Error


Saw an interesting situation today… in one of my test environments, I set up a User Profile Service, a Web App for MySites, and a MySite Host Site Collection… when I tried to test it out, I was able to access the main MySite page, but I got an “unexpected error” when I tried to view “My Profile”. The ULS logs had the following error:

Unhandled exception caught during execution of Microsoft.SharePoint.Portal.PageBase::ErrorHandler(). Exception information: Exception information: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.Office.Server.Utilities.UrlUtility.SafeAppendQueryStringParameter(String strUrl, String strKey, String strValue)     at Microsoft.SharePoint.Portal.WebControls.EditProfileButton.OnPreRender(EventArgs e)     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal() ...    68cefa1b-e0da-401c-bea0-c97628369166

Which made me realize I’d forgotten to configure the User Profile to have My Sites set up – turns out I’d forgotten to configure the MySite Host collection.

image

 

image

 

Typed in a My Site Host, and voila!


Comments (2)

  1. m c jayanarayan says:

    dear sir

    i am unable to login to my site for some of my users. the my site is opening for some users. but all users are available in the AD. even complete sync has been done. they are able to login. but unable to goto my site or my profile. i get a corelation error..pls help

  2. Swapnil says:

    Thanks for the info… It worked like a charm….

Skip to main content