[Solved] SharePoint Search Internal server error exception


Posted on : Thu, 3rd Sep 15 01:28 pm UTC
100+ votes

Error

Users receive an error while performing a SharePoint search operation - Internal server error exception.
This is the only message and rest is the standard Correlation ID information. But the Correlation ID is the most useful.

Analysis and Troubleshooting

Upon reviewing the ULS logs using Correlation ID, below error message is found. Check here - How to use Merge-SPlogfile to find logs based on Correlation ID error

SearchServiceApplication::Execute--Exception: System.Runtime.InteropServices.COMException (0x800703FA): Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at Microsoft.Office.Server.Search.Query.KeywordQueryInternal.Execute() at Microsoft.Office.Server.Search.Query.QueryInternal.Execute(QueryProperties properties) at Microsoft.Office.Server.Search.Administration.SearchServiceApplication.Execute(QueryProperties properties)

This issue does not seem to be related to permissions or configuration. Sometimes this looks intermittent.
It seems some registry key has been marked for deletion but still has open handles or references.
Possibly something is wrong with the Search Query component. Now the query component can be hosted on multiple servers. Easier option would be to restart related app pool, service on all SharePoint servers.

Resolution

Follow below steps to resolve this issue. If problem still persists, you may need to follow up with your Administrator.

  1. From IIS - Restart (Stop-Start) the application pool for SecurityTokenService on all SharePoint FARM servers.
  2. From Central Admin - Restart (Stop-Start) the Search Query and Site Settings Service on all SharePoint FARM servers hosting query component.
  3. Perform an IISRESET on all SharePoint servers in FARM.

Code2care's mission is to share varied knowledge in technical and non-technical areas gathered during day-to-day learnings and development activities so that our visitors can leverage this portal to find solutions to their queries without re-inventing the wheel. Technical posts include Learnings, Tutorials, Video Tutorials, Code Snippets, Tips-n-tricks.

Follow us : Facebook - Twitter - Google +