The base type 'Microsoft.Office.Server.Search.Internal.UI.SearchAdministration' is not allowed for this page.

adil 1,206 Reputation points
2020-11-17T09:21:41.447+00:00

Search Service application worked fine before but after some days when i open search service application from central admin below error appears.

The base type 'Microsoft.Office.Server.Search.Internal.UI.SearchAdministration' is not allowed for this page. The type Microsoft.Office.Server.Search.Internal.UI.SearchAdministration, Microsoft.Office.Server.Search, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c could not be found or it is not registered as safe.

what cause this issue occurred in SharePoint?

recently we disabled TLS1.1 in SP Servers and SQL Server

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,810 questions
0 comments No comments
{count} vote

Accepted answer
  1. Itch Sun-MSFT 2,556 Reputation points
    2020-11-18T07:39:19.867+00:00

    Hi @adlilahmed

    Please try to add the following line to the Central Admin web site web.config:

    <SafeControl  
      
         Assembly="Microsoft.Office.Server.Search, Version=14.0.0.0,  
      
         Culture=neutral, PublicKeyToken=71e9bce111e9429c"  
      
         Namespace="Microsoft.Office.Server.Search.Internal.UI"  
      
         TypeName="*" />  
      
    <PageParserPath  
      
         VirtualPath="/searchadministration.aspx"  
      
         CompilationMode="Always" AllowServerSideScript="true"  
      
         />  
    

    For more information:

    https://azurecloudai.blog/2012/09/13/the-base-type-microsoft-office-server-search-internal-ui-searchfarmdashboard-is-not-allowed-for-this-page-the-type-is-not-registered-as-safe/

    https://sharepoint.stackexchange.com/questions/139241/searchresultslayoutpage-error-in-enterprise-search-site-after-sp1-and-several-cu/139649

    Please note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    4 people found this answer helpful.

6 additional answers

Sort by: Newest
  1. atique ahmed 1 Reputation point
    2022-12-05T04:24:02.627+00:00

    I am also facing the same issue as mentioned above suddenly, there was no recent changes on the server.
    I have added those lines as mentioned below but no luck.
    <SharePoint>
    <SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="250" AllowPageLevelTrace="false">
    <PageParserPaths>
    <PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="True" IncludeSubFolders="true" />
    </PageParserPaths>

    Any help please.


  2. Levent Acar 6 Reputation points
    2021-03-16T12:00:48.633+00:00

    Hi Omur,
    I recently updated SharePoint with latest updates and I also see following safe controls in my Central Administration web.config file.. Can you please check if you have these entries..

    <SafeControl Assembly="Microsoft.Office.Server.Search, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.Office.Server.Search.Internal.UI" TypeName="SearchResultsLayoutPage" Safe="True" AllowRemoteDesigner="False" />
    <SafeControl Assembly="Microsoft.Office.Server.Search, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.Office.Server.Search.Internal.UI" TypeName="SearchAdministration" Safe="True" AllowRemoteDesigner="False" />
    <SafeControl Assembly="Microsoft.Office.Server.Search, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.Office.Server.Search.Internal.UI" TypeName="SearchFarmDashboard" Safe="True" AllowRemoteDesigner="False" />


  3. Oemuer Boecek 1 Reputation point
    2021-03-16T11:34:39.687+00:00

    Hi Levent

    Unfortunately, I still have the same problems after add the lines into the web.config file under central administration.

    Do you have another idea?

    0 comments No comments

  4. Levent Acar 6 Reputation points
    2021-03-16T10:47:43.187+00:00

    Hi Omur,
    I modified web.config file in SharePoint Central Administration v4 contents folder. (You can open folder using IIS and selecting your Central administration site and browsing content) reminder.. Please make a backup of web.config file before editing..

    In safe controls section I added

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

    and also search for <PageParserPaths> and then added

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

    Hope this helps..