Wednesday 19 December 2012

"The base type 'Microsoft.Office.Server.Search.Internal.UI.SearchFarmDashboard' is not allowed for this page. The type is not registered as safe"

While doing Search Service Application setup, I faced "
"The base type 'Microsoft.Office.Server.Search.Internal.UI.SearchFarmDashboard' is not allowed for this page. The type is not registered as safe"
error.
After surfing, I got lots of solution. But my solution came from  this post
To resolve the issue, Do one change in Web.config of Central Admin.
You can get Central admin web config path as follows also:
1- Open IIS (on run type inetmgr).
2- From site folder, select Central Admin site and select explore by doing Right click on this site.
3- First(And Most Important), Make a copy of Web.config.
4- Open web.config either in notepad or in Visual studio.
5-  Search/Go to SafeControl  element.
6- Add 
<SafeControl
     Assembly="Microsoft.Office.Server.Search, Version=14.0.0.0,
     Culture=neutral, PublicKeyToken=71e9bce111e9429c"
     Namespace="Microsoft.Office.Server.Search.Internal.UI"
     TypeName="*" />
7- Search PageParserPaths tag
8- Add

<PageParserPath
     VirtualPath="/searchadministration.aspx"
     CompilationMode="Always" AllowServerSideScript="true"
     />
9- Reset the iss using iisreset command from command prompt.
10 And Done.

No comments :

Post a Comment