question

adilahmed avatar image
1 Vote"
adilahmed asked ·

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

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

office-sharepoint-server-administration
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

itchsun-msft avatar image
2 Votes"
itchsun-msft answered ·

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.



· 3 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

what was caused for this issue do you have any ideas ,it was working fine before.

0 Votes 0 ·

Hi @adilahmed

There may be many reasons for this error, for example:

You will see this error when there is a missing safe control entry in the web.config file, located at Inetpub\Wwwroot\WSS\VirtualDirectories\<port number of your web-application>

1 Vote 1 ·

We started getting this error after installing October Security patch. Did the above fix your issue?

1 Vote 1 ·
JonathanHerschel-1342 avatar image
2 Votes"
JonathanHerschel-1342 answered ·

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>
· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You total champ. This saved my bacon this morning! October CUs just as you stated.

0 Votes 0 ·
LeventAcar-1076 avatar image
1 Vote"
LeventAcar-1076 answered ·

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 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi LeventAcar-1076

where do I need to insert these lines?


Thanks

Boecek

0 Votes 0 ·
LeventAcar-1076 avatar image
0 Votes"
LeventAcar-1076 answered ·

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

· 3 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Does this require an IIS reset? Just making sure. Thank you

0 Votes 0 ·

Does this require an IIS reset? Just making sure. Thank you

0 Votes 0 ·

Hi, As I remember page displayed correctly without IIS reset, I just refreshed the page..
Thanks

0 Votes 0 ·
OemuerBoecek-4309 avatar image
0 Votes"
OemuerBoecek-4309 answered ·

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?

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeventAcar-1076 avatar image
0 Votes"
LeventAcar-1076 answered ·

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

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yes, I have this lines in my web.config

0 Votes 0 ·