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!