I have an issue where I cannot change the primary site collection administrator of a site which is set to my user account.
In the central administration console when changing the name I get the error:
Running the set-spsite
command in powershell it is indicating that it is a NullReferenceException
.
any ideas on how to resolve this will be very much appreciated.
EDIT
02/28/2019 14:43:06.79 w3wp.exe (0x53EC) 0x36CC SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (POST:http://server:5000/_admin/owners.aspx))
02/28/2019 14:43:06.79 w3wp.exe (0x53EC) 0x36CC SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (POST:http://server:5000/_admin/owners.aspx) 026d2244-b9f2-4b83-83a3-0837e178a172 02/28/2019 14:43:06.79 w3wp.exe (0x53EC) 0x36CC SharePoint Foundation Logging Correlation Data xmnv Medium Site=/ 026d2244-b9f2-4b83-83a3-0837e178a172
02/28/2019 14:43:06.79 w3wp.exe (0x53EC) 0x36CC SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (PostAuthenticateRequestHandler). Execution Time=3.90652513934052 026d2244-b9f2-4b83-83a3-0837e178a172 02/28/2019 14:43:06.82 w3wp.exe (0x53EC) 0x36CC SharePoint Foundation General g8ga Medium Begin Query the AD to get the user email and display name. 026d2244-b9f2-4b83-83a3-0837e178a172 02/28/2019 14:43:06.82 w3wp.exe (0x53EC) 0x36CC SharePoint Foundation General g8gb Medium End Query the AD to get the user email and display name. 026d2244-b9f2-4b83-83a3-0837e178a172
02/28/2019 14:43:06.83 w3wp.exe (0x53EC) 0x36CC SharePoint Foundation Runtime tkau Unexpected System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.SPUser.set_IsSiteAdmin(Boolean value) at Microsoft.SharePoint.SPSite.set_Owner(SPUser value) at Microsoft.SharePoint.Administration.SPSiteAdministration.set_OwnerLoginName(String value) at Microsoft.SharePoint.ApplicationPages.OwnersPage.BtnConfirm_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 026d2244-b9f2-4b83-83a3-0837e178a172