Sorry something went wrong the base type ‘.Search.UI.SearchResultsLayoutPage’ is not allowed for this page

[Fixed]: The base type ‘.Search.UI.SearchResultsLayoutPage’ is not allowed for this page

No comments

 2,143 total views,  6 views today

Suddenly in SharePoint 2016, the people search has stopped working, when we have tried to search any users from SharePoint 2016, we got the below error:

“The base type ‘Microsoft.Office.Server.Search.Internal.UI.SearchResultsLayoutPage’ is not allowed for this page. The type Microsoft.Office.Server.Search.Internal.UI.SearchResultsLayoutPage, Microsoft.Office.Server.Search, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c could not be found or it is not registered as safe.”

Sorry something went wrong in SharePoint 2016 people search
Sorry something went wrong in SharePoint 2016 people search

Reason for the above error or issue:

Recently if you have updated any windows update or security update in SharePoint 2016 or a higher version of SharePoint, we will get into this issue, generally, it started happening after October 2020 windows security update in the server.

Solution

If you google around about this issue, we will get a lot of references to update the web.config file of the issued web application, most people say to add the below entry in the web. config file.

<SafeControls>
<SafeControl Assembly="Microsoft.Office.Server.Search, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.Office.Server.Search.Internal.UI" TypeName="*" Safe="True" />
</SafeControls>

<PageParserPaths>
<PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="True" IncludeSubFolders="true" />
</PageParserPaths>

 

However, for us, we just added the below line inside the <safecontrols> tag of the web.config file and it started working:

<SafeControl Assembly="Microsoft.Office.Server.Search, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.Office.Server.Search.Internal.UI" TypeName="*" Safe="True" />

Note:

  • We didn’t add the “<PageParserPath VirtualPath=”/*” CompilationMode=”Always” AllowServerSideScript=”True” IncludeSubFolders=”true” />” tag, still it worked, rather when we tried to add this tag, we endedup with some other error.

Summary

Thus, in this article, we have learned about how to fix the “The base type ‘Microsoft.Office.Server.Search.Internal.UI.SearchResultsLayoutPage’ is not allowed for this page. The type Microsoft.Office.Server.Search.Internal.UI.SearchResultsLayoutPage, Microsoft.Office.Server.Search, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c could not be found or it is not registered as safe.” error.

See Also

You may also like the below SharePoint troubleshooting articles:

Download SharePoint Online & Office 365 Administration eBook

Buy the premium version of SharePoint Online & Office 365 administration eBook from here:



Buy SharePoint Online & Office 365 Administration eBook


 

Get the free demo PDF eBook from here:

FREE DOWNLOAD

Send download link to:

Subscribe to get exclusive content and recommendations every month. You can unsubscribe anytime.