SharePoint 2013 Search results Error: Object not set to instance of object for Anonymous Users
<p>I have a very specific error that i cannot resolve. This site was migrated from SP2010 to SP2013, and it had a Local /Search center. the site needs Anonymous users enabled, but after enabling it, the search is not functioning for Anonymous Users, only authenticated users. </p>

<p>This is a page with a Search box, for example, which results in a error.</p>

<p>In the ULS logs, the error relates to the following method in the stack trace:</p>

<p>Microsoft.SharePoint.Publishing.CachedArea.CreateResultSetFromSuperUserAndSuperReader(StringCollection superReaderItemIDs, StringCollection superUserItemIDs, Dictionary<code>2 cachedObjects, SPWeb contextWeb, SPQuery query, List</code>1 fieldrefs, CachedObjectFactory objectFactory)
   at Microsoft.SharePoint.Publishing.CachedArea.GetChildForListByQuery(String listName, SPQuery query, SPWeb contextWeb, Boolean onlyPopulateCache, Boolean skipIfThrottled, List`1&amp; itemsFetched)
   at Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider.GetCachedListItemsByQuery(PortalWebSiteMapNode webNode, String listName, SPQuery query, SPWeb contextWeb)
   at Microsoft.SharePoint.Portal.WebControls.ObjectCacheDataSourceView.ExecuteSelect(DataSourceSelectArguments selectArguments)
   at Microsoft.SharePoint.Portal.WebControls.ObjectCacheDataSourceView.Select(DataSourceSelectArguments arguments)</p>

<p>I have tried adding the superuseraccount and superreaderaccount to the web application (it was missing) and do an IISRESET. I have also given the accounts explicit permission to the web app and re-crawled. None of these has fixed the issue.</p>

<p>I have had to turn off the Anonymous access until i can fix this. Has anyone encountered a similar issue?</p>

<p>Is it maybe a problem on the actual Search page? </p>