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

adil 1,371 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,969 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: Most helpful
  1. Jonathan Herschel 16 Reputation points
    2020-12-02T17:42:11.837+00:00

    This fixed my issue (resolution 2):
    https://support.microsoft.com/en-us/help/4584132/ghosted-pages-in-sharepoint-not-render

    in web.config for your shaerpoint site:
    added:

    <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" />

    and added

      <PageParserPaths>
      <PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="True" IncludeSubFolders="true" />
      </PageParserPaths>
    
    2 people found this answer helpful.

  2. Levent Acar 6 Reputation points
    2021-02-26T09:23:15.257+00:00

    Thanks!.. That solves my issue with SharePoint 2019 as well..
    SearchServiceApplicationError
    <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" />

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

    1 person found this answer helpful.

  3. 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..


  4. 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.