Share and Enjoy !

If you have registered a search security trimmer with a crawl rule and then prevented SharePoint from accessing the security trimmer (such as removing it from the GAC), you will get a nasty error when trying to execute a search that has results that meet your crawl rule.

To aid those searching for this error I’ll restate it:

Your search cannot be completed because of a service error. Try your search again or
 contact your administrator for more information.

To fix this simply make sure the security trimmer assembly is available (put it back in the GAC). You’ll likely have to do an IISRESET for things to work again. If you don’t have access to the security trimmer you may need to reset your index (hopefully there is another option, but I suspect not).

I had to dig through the SharePoint ULS logs to figure this out:

09/18/2008 11:15:42.01 w3wp.exe (0x0EB0) 0x0EF4 Search Server Common MS Search Query Processor 97zu
Unexpected Error occurred when executing pluggable security trimmer with Id 33402:

09/18/2008 11:15:42.14 w3wp.exe (0x0EB0) 0x0EF4 Search Server Common MS Search Query Processor 97zv
Exception System.IO.FileNotFoundException: Could not load file or assembly
'Atlassian.Confluence.SharePoint.Search, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=96f82bd35ec392e7' or one of its dependencies. The system cannot
find the file specified. File name: 'Atlassian.Confluence.SharePoint.Search,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=96f82bd35ec392e7' at
System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean
ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase,
Boolean reflectionOnly, StackCrawlMark& stackMark) at System.RuntimeType.PrivateGetType
(String typeName, Boolean throwOnError, Boolean ignoreCas...

09/18/2008 11:15:42.14* w3wp.exe (0x0EB0) 0x0EF4 Search Server Common MS Search Query Processor 97zv
Exception ...e, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.Type.GetType
(String typeName, Boolean throwOnError) at Microsoft.Office.Server.Search.Administration.
Security.PluggableSecurityTrimmerManager.Instantia

09/18/2008 11:15:42.18 w3wp.exe (0x0EB0) 0x0EF4 Windows SharePoint Services Web Parts 89a1
Monitorable Error while executing web part: Microsoft.Office.Server.Search.WebControls.
SrhdcGenericException: Your search cannot be completed because of a service error.
Try your search again or contact your administrator for more information. --->
System.IO.FileNotFoundException: Could not load file or assembly 'Atlassian.Confluence.
SharePoint.Search, Version=1.0.0.0, Culture=neutral, PublicKeyToken=96f82bd35ec392e7'
or one of its dependencies. The system cannot find the file specified. File name:
'Atlassian.Confluence.SharePoint.Search, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=96f82bd35ec392e7' at System.RuntimeTypeHandle._GetTypeByName(String name,
Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark,
Boolean loadTypeFromPartialName) at System...

 

Share and Enjoy !

Related Content: