I was updating the AAM for central administration and updated the default URL to //centraladmin/ before a DNS entry was created (miscommunication). Now I am unable to access the site even with the new DNS entry added. I try //centraladmin:43998 and get the prompt to login but just get a 500 internal server error.
This is the error I find in the logs.
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.SharePoint.Administration.SPAlternateUrlCollectionManager.HandleUnmappedRequestUrl(Uri requestUri, SPAlternateUrlCollection collection)
at Microsoft.SharePoint.Administration.SPWebApplication.Lookup(SPFarm farm, Uri requestUri, Boolean fallbackToHttpContext, SPAlternateUrl& alternateUrl, SPSiteLookupInfo& hostHeaderSiteInfo, Boolean& lookupRequiredContext)
at Microsoft.SharePoint.Administration.Claims.SPClaimProviderManager.GetSettingsForContext(Uri context, Boolean fallbackToHttpContext, SPWebApplication& webApplication, SPUrlZone& zone, Boolean& lookupRequiredContext, SPAlternateUrl& alternateUrl)
at Microsoft.SharePoint.Administration.Claims.SPClaimProviderManager.GetSettingsForContext(Uri context)
at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.PostAuthenticateRequestHandler(Object oSender, EventArgs ea)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
How do I fix this if I can't access central admin to change the AAM? The A record doesn't have the port number in the URL. Is that required? Thanks.