Link to home
Start Free TrialLog in
Avatar of randy915
randy915

asked on

"An unexpected error has occurred" when clicking on Choose Picture button in Edit User Profile within Central Admin

I had a long drawn out battle to fix my broken User Profile Service app after applying the Feb 2012 CU.  The original motivation to install this CU was to fix the issue in the June 2011 CU which broken the picture upload functionality.

Now that UPS is up and running and synchronizing properly I found a new issue - when I click on Choose Picture button I get ubiquitous Error popup w/ An unexpected error has occurred and the correlation ID.

After turning on verbose logging for all events, I triggered this error again and filtered based on this ID but not sure what to make of it...


Starting correlation
Name=Request (GET:http://intranet10:8080/_layouts/SelectPicture2.aspx?Type=User&accountname=DOMAIN%5Crandy&ApplicationID=f8ebbafd%2D0e8f%2D4681%2D8523%2Dbf16b9a94f02&IsDlg=1)      12d16cb4-b0a9-4de1-b85b-a1d647882640


Entering monitored scope (BeginRequestHandler)      12d16cb4-b0a9-4de1-b85b-a1d647882640


SQM: Datapoint id 6693 marked as Increment datapoint.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Leaving Monitored Scope (BeginRequestHandler). Execution Time=0.0533587369344428      12d16cb4-b0a9-4de1-b85b-a1d647882640


____SQL Query Count=0      12d16cb4-b0a9-4de1-b85b-a1d647882640


____Execution Time=0.0533587369344428      12d16cb4-b0a9-4de1-b85b-a1d647882640


Entering monitored scope (PostAuthenticateRequestHandler)      12d16cb4-b0a9-4de1-b85b-a1d647882640


Leaving Monitored Scope (PostAuthenticateRequestHandler). Execution Time=0.0460952439486024      12d16cb4-b0a9-4de1-b85b-a1d647882640


____SQL Query Count=0      12d16cb4-b0a9-4de1-b85b-a1d647882640


____Execution Time=0.0460952439486024      12d16cb4-b0a9-4de1-b85b-a1d647882640


User=DOMAIN\randy      12d16cb4-b0a9-4de1-b85b-a1d647882640


Entering monitored scope (PostResolveRequestCacheHandler)      12d16cb4-b0a9-4de1-b85b-a1d647882640


Leaving Monitored Scope (PostResolveRequestCacheHandler). Execution Time=0.00502857206712026      12d16cb4-b0a9-4de1-b85b-a1d647882640k


____SQL Query Count=0      12d16cb4-b0a9-4de1-b85b-a1d647882640


____Execution Time=0.00502857206712026      12d16cb4-b0a9-4de1-b85b-a1d647882640




Looking up context  site http://intranet10:8080/_layouts/SelectPicture2.aspx?Type=User&accountname=DOMAIN%5Crandy&ApplicationID=f8ebbafd%2D0e8f%2D4681%2D8523%2Dbf16b9a94f02&IsDlg=1 in the farm SharePoint_Config10      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking up the additional information about the typical site http://intranet10:8080/_layouts/SelectPicture2.aspx?Type=User&accountname=DOMAIN%5Crandy&ApplicationID=f8ebbafd%2D0e8f%2D4681%2D8523%2Dbf16b9a94f02&IsDlg=1.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Site lookup is replacing http://intranet10:8080/_layouts/SelectPicture2.aspx?Type=User&accountname=DOMAIN%5Crandy&ApplicationID=f8ebbafd%2D0e8f%2D4681%2D8523%2Dbf16b9a94f02&IsDlg=1 with the alternate access url http://intranet10:8080.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking up typical site http://intranet10:8080/_layouts/SelectPicture2.aspx?Type=User&accountname=DOMAIN%5Crandy&ApplicationID=f8ebbafd%2D0e8f%2D4681%2D8523%2Dbf16b9a94f02&IsDlg=1 in web application SPAdministrationWebApplication.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Found typical site / (edb31d38-802d-4cce-b64d-94f1c4ff54a5) in web application SPAdministrationWebApplication.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Site=/      12d16cb4-b0a9-4de1-b85b-a1d647882640


Setting database session for {05d66b77-b349-41fa-897b-699d4370d1e5}.      12d16cb4-b0a9-4de1-b85b-a1d647882640


ConnectionString: 'Data Source=sharepointsql;Initial Catalog=SharePoint_AdminContent_19639abb-a4a7-44c8-b3a5-f8e12e132178;Integrated Security=True;Enlist=False;Asynchronous Processing=False;Connect Timeout=15'    ConnectionState: Closed ConnectionTimeout: 15      12d16cb4-b0a9-4de1-b85b-a1d647882640


Entering monitored scope (ProfilePropertyLoader.OnInit)      12d16cb4-b0a9-4de1-b85b-a1d647882640




Looking up context  site http://intranet10:8080/_layouts/SelectPicture2.aspx?Type=User&accountname=DOMAIN%5Crandy&ApplicationID=f8ebbafd%2D0e8f%2D4681%2D8523%2Dbf16b9a94f02&IsDlg=1 in the farm SharePoint_Config10      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking up the additional information about the typical site http://intranet10:8080/_layouts/SelectPicture2.aspx?Type=User&accountname=DOMAIN%5Crandy&ApplicationID=f8ebbafd%2D0e8f%2D4681%2D8523%2Dbf16b9a94f02&IsDlg=1.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Site lookup is replacing http://intranet10:8080/_layouts/SelectPicture2.aspx?Type=User&accountname=DOMAIN%5Crandy&ApplicationID=f8ebbafd%2D0e8f%2D4681%2D8523%2Dbf16b9a94f02&IsDlg=1 with the alternate access url http://intranet10:8080.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking up typical site http://intranet10:8080/_layouts/SelectPicture2.aspx?Type=User&accountname=DOMAIN%5Crandy&ApplicationID=f8ebbafd%2D0e8f%2D4681%2D8523%2Dbf16b9a94f02&IsDlg=1 in web application SPAdministrationWebApplication.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Found typical site / (edb31d38-802d-4cce-b64d-94f1c4ff54a5) in web application SPAdministrationWebApplication.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Thread change; resetting trace level override to 0; resetting correlation to 12d16cb4-b0a9-4de1-b85b-a1d647882640      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking for a cached value matching e382723c-c4ed-4896-9868-b9340528fa91 in the Profile Property Cache cache.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Cache hit.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking for a cached value matching e382723c-c4ed-4896-9868-b9340528fa91 in the Profile Property Cache cache.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Cache hit.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking for a cached value matching e382723c-c4ed-4896-9868-b9340528fa91 in the Profile Property Cache cache.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Cache hit.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking for a cached value matching e382723c-c4ed-4896-9868-b9340528fa91 in the Profile Property Cache cache.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Cache hit.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking for a cached value matching e382723c-c4ed-4896-9868-b9340528fa91 in the Profile Property Cache cache.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Cache hit.      12d16cb4-b0a9-4de1-b85b-a1d647882640


ConnectionString: 'Data Source=sharepointsql;Initial Catalog=UPS_Profile;Integrated Security=True;Enlist=False;Asynchronous Processing=False;Connect Timeout=15'    ConnectionState: Closed ConnectionTimeout: 15      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking for a cached value matching e382723c-c4ed-4896-9868-b9340528fa91 in the Profile Property Cache cache.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Cache hit.      12d16cb4-b0a9-4de1-b85b-a1d647882640


ConnectionString: 'Data Source=sharepointsql;Initial Catalog=UPS_Profile;Integrated Security=True;Enlist=False;Asynchronous Processing=False;Connect Timeout=15'    ConnectionState: Closed ConnectionTimeout: 15      12d16cb4-b0a9-4de1-b85b-a1d647882640


Leaving Monitored Scope (ProfilePropertyLoader.OnInit). Execution Time=6.71230561426103      12d16cb4-b0a9-4de1-b85b-a1d647882640


____Execution Time=6.71230561426103      12d16cb4-b0a9-4de1-b85b-a1d647882640


Entering monitored scope (PersonalPageCommon.OnInit)      12d16cb4-b0a9-4de1-b85b-a1d647882640


Leaving Monitored Scope (PersonalPageCommon.OnInit). Execution Time=0.0947047739307649      12d16cb4-b0a9-4de1-b85b-a1d647882640


____Execution Time=0.0947047739307649      12d16cb4-b0a9-4de1-b85b-a1d647882640


Entering monitored scope (PersonalWebPartPage.OnLoad)      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking for a cached value matching e382723c-c4ed-4896-9868-b9340528fa91 in the Profile Property Cache cache.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Cache hit.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Url Could not be set as Current Context is null      12d16cb4-b0a9-4de1-b85b-a1d647882640


Leaving Monitored Scope (PersonalWebPartPage.OnLoad). Execution Time=0.076546041466164      12d16cb4-b0a9-4de1-b85b-a1d647882640


____Execution Time=0.076546041466164      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking for a cached value matching e382723c-c4ed-4896-9868-b9340528fa91 in the Profile Property Cache cache.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Cache hit.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking for a cached value matching e382723c-c4ed-4896-9868-b9340528fa91 in the Profile Property Cache cache.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Cache hit.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking for a cached value matching e382723c-c4ed-4896-9868-b9340528fa91 in the Profile Property Cache cache.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Cache hit.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Determining if the current user is a SharePoint Farm Administrator      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking for a cached value matching e382723c-c4ed-4896-9868-b9340528fa91 in the Profile Property Cache cache.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Cache hit.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking for a cached value matching e382723c-c4ed-4896-9868-b9340528fa91 in the Profile Property Cache cache.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Cache hit.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking for a cached value matching e382723c-c4ed-4896-9868-b9340528fa91 in the Profile Property Cache cache.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Cache hit.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Determining if the current user is a SharePoint Farm Administrator      12d16cb4-b0a9-4de1-b85b-a1d647882640


Looking for a cached value matching e382723c-c4ed-4896-9868-b9340528fa91 in the Profile Property Cache cache.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Cache hit.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Url Path: "/_layouts/SelectPicture2.aspx"      12d16cb4-b0a9-4de1-b85b-a1d647882640


Unhandled exception caught during execution of Microsoft.SharePoint.Portal.PageBase::ErrorHandler(). Exception information: Exception information: System.UriFormatException: Invalid URI: The URI is empty.     at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)     at Microsoft.SharePoint.SPSite..ctor(String requestUrl)     at Microsoft.SharePoint.Portal.WebControls.ProfileImagePicker.LoadPictureLibrary()     at Microsoft.SharePoint.Portal.WebControls.ProfileImagePicker.<OnLoad>b__0()     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()     at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)     at Microsoft.SharePoint.Portal.WebControls.ProfileImagePicker.OnLoad(EventArgs ea)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) System.UriFormatException: Invalid URI: The URI is empty.     at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)     at Microsoft.SharePoint.SPSite..ctor(String requestUrl)     at Microsoft.SharePoint.Portal.WebControls.ProfileImagePicker.LoadPictureLibrary()     at Microsoft.SharePoint.Portal.WebControls.ProfileImagePicker.<OnLoad>b__0()     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()     at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)     at Microsoft.SharePoint.Portal.WebControls.ProfileImagePicker.OnLoad(EventArgs ea)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)      12d16cb4-b0a9-4de1-b85b-a1d647882640




ULSCallWatson beginning for tag = 930114913      12d16cb4-b0a9-4de1-b85b-a1d647882640




ULSCallWatson incrementing SQM exception count      12d16cb4-b0a9-4de1-b85b-a1d647882640




SQM: Datapoint id 6902 marked as Increment datapoint.      12d16cb4-b0a9-4de1-b85b-a1d647882640




ULSCallWatson using passed in bucketing parameters      12d16cb4-b0a9-4de1-b85b-a1d647882640




Succesfully prepared for DW      12d16cb4-b0a9-4de1-b85b-a1d647882640


Watson bucket parameters: SharePoint Server 2010, ULSException14, 06d8f9f3 "sharepoint portal server", 0e00178d "14.0.6029.0", 18b0be27 "system", 0200c627 "2.0.50727.0", 4ca2ba90 "tue sep 28 21:03:28 2010", 00001b38 "00001b38", 00000072 "00000072", b1a33cfe "uriformatexception", 37706d61 "7pma"      12d16cb4-b0a9-4de1-b85b-a1d647882640




ULSCallWatson has found Watson DISABLED      12d16cb4-b0a9-4de1-b85b-a1d647882640


Application error when access /_layouts/SelectPicture2.aspx, Error=Invalid URI: The URI is empty.   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)     at Microsoft.SharePoint.SPSite..ctor(String requestUrl)     at Microsoft.SharePoint.Portal.WebControls.ProfileImagePicker.LoadPictureLibrary()     at Microsoft.SharePoint.Portal.WebControls.ProfileImagePicker.<OnLoad>b__0()     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()     at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)     at Microsoft.SharePoint.Portal.WebControls.ProfileImagePicker.OnLoad(EventArgs ea)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)      12d16cb4-b0a9-4de1-b85b-a1d647882640




System.UriFormatException: Invalid URI: The URI is empty.    at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)     at Microsoft.SharePoint.SPSite..ctor(String requestUrl)     at Microsoft.SharePoint.Portal.WebControls.ProfileImagePicker.LoadPictureLibrary()     at Microsoft.SharePoint.Portal.WebControls.ProfileImagePicker.<OnLoad>b__0()     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()     at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)     at Microsoft.SharePoint.Portal.WebControls.ProfileImagePicker.OnLoad(EventArgs ea)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)      12d16cb4-b0a9-4de1-b85b-a1d647882640




Entering monitored scope (EndRequestHandler SharePointEndRequest)      12d16cb4-b0a9-4de1-b85b-a1d647882640


Trace level override is turned off.      12d16cb4-b0a9-4de1-b85b-a1d647882640


Leaving Monitored Scope (EndRequestHandler SharePointEndRequest). Execution Time=0.0206730184981611      12d16cb4-b0a9-4de1-b85b-a1d647882640


____SQL Query Count=0      12d16cb4-b0a9-4de1-b85b-a1d647882640


____Execution Time=0.0206730184981611      12d16cb4-b0a9-4de1-b85b-a1d647882640


Entering monitored scope (LogRequestUsage)      12d16cb4-b0a9-4de1-b85b-a1d647882640


Successfully added requestUsageEntry to CollectUsageData with url http://intranet10:8080/_layouts/SelectPicture2.aspx?Type=User&accountname=DOMAIN%5Crandy&ApplicationID=f8ebbafd%2D0e8f%2D4681%2D8523%2Dbf16b9a94f02&IsDlg=1      12d16cb4-b0a9-4de1-b85b-a1d647882640


Leaving Monitored Scope (LogRequestUsage). Execution Time=0.0516825462454027      12d16cb4-b0a9-4de1-b85b-a1d647882640


____SQL Query Count=0      12d16cb4-b0a9-4de1-b85b-a1d647882640


____Execution Time=0.0516825462454027      12d16cb4-b0a9-4de1-b85b-a1d647882640


Entering monitored scope (EndRequestHandler SPRequest Disposal)      12d16cb4-b0a9-4de1-b85b-a1d647882640


Releasing SPRequest with allocation Id {D1189FCA-8FDE-492A-A8D3-7ED7F938ED3A}      12d16cb4-b0a9-4de1-b85b-a1d647882640


Leaving Monitored Scope (EndRequestHandler SPRequest Disposal). Execution Time=0.108952394787606      12d16cb4-b0a9-4de1-b85b-a1d647882640


____SQL Query Count=0      12d16cb4-b0a9-4de1-b85b-a1d647882640


____Execution Time=0.108952394787606      12d16cb4-b0a9-4de1-b85b-a1d647882640


Starting write trace for type Microsoft.SharePoint.Administration.SPRequestUsageEntry with correlationID 12d16cb4-b0a9-4de1-b85b-a1d647882640      12d16cb4-b0a9-4de1-b85b-a1d647882640


Successful wrote trace for type Microsoft.SharePoint.Administration.SPRequestUsageEntry with correlationID 12d16cb4-b0a9-4de1-b85b-a1d647882640      12d16cb4-b0a9-4de1-b85b-a1d647882640


Leaving Monitored Scope (Request (GET:http://intranet10:8080/_layouts/SelectPicture2.aspx?Type=User&accountname=DOMAIN%5Crandy&ApplicationID=f8ebbafd%2D0e8f%2D4681%2D8523%2Dbf16b9a94f02&IsDlg=1)). Execution Time=17.4907704750185      12d16cb4-b0a9-4de1-b85b-a1d647882640


____SPRequest Objects=1      12d16cb4-b0a9-4de1-b85b-a1d647882640


____SQL Query Count=3      12d16cb4-b0a9-4de1-b85b-a1d647882640


____Execution Time=17.4907704750185      12d16cb4-b0a9-4de1-b85b-a1d647882640


____Current User=      12d16cb4-b0a9-4de1-b85b-a1d647882640


____WebPart Events Offsets=0      12d16cb4-b0a9-4de1-b85b-a1d647882640


____Service Calls=0      12d16cb4-b0a9-4de1-b85b-a1d647882640


____Page Checkout Level=Published      12d16cb4-b0a9-4de1-b85b-a1d647882640


____Current SharePoint Operations=0      12d16cb4-b0a9-4de1-b85b-a1d647882640


____Critical Events=0      12d16cb4-b0a9-4de1-b85b-a1d647882640


____Log Correlation Id=12d16cb4-b0a9-4de1-b85b-a1d647882640      12d16cb4-b0a9-4de1-b85b-a1d647882640


Ending correlation.      12d16cb4-b0a9-4de1-b85b-a1d647882640
ASKER CERTIFIED SOLUTION
Avatar of Justin Smith
Justin Smith
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of randy915
randy915

ASKER

Thanks ACH1LLES, your tip pointed me in the right direction.

1. In Central Admin > Application Management > Manage Web Applications, I deleted the MySites app but not its database (note its name before you delete it.)

2. Recreated MySites, good guide - http://sharepointgeorge.com/2010/configuring-my-site-sharepoint-2010/

Note: for my situation I did not deploy a new Site Colleciton as MySites is not used in my organization but at least do all the other configuration steps.

3. One thing the guide doesn't mention is to note your Preferred Search Center URL which in my case is http://intranet/search/pages.
Go to Application Management > Manage Service Applications > User Profile Service > Setup My Sites
Enter this URL under "Preferred Search Center".

4. Run IISRESET /noforce

5. Go back to User Profile Service in step 3, and click "Start Profile Synchronization" and then a full sync.

6. At this point you should be able to click on Choose Picture without getting that cryptic error.