If the Service account hasn’t been given sufficient permissions, the application event viewer logs would be filled with following exception.
Event Type: Error
Event Source: Office SharePoint Server
Event Category: Office Server Shared Services
Event ID: 6482
Date: 4/12/2009
Time: 2:34:37 AM
User: N/A
Computer: DEV01
Description:
Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance (d58a27ff-5312-4d11-8d0e-1e43104dc6c5).
Reason: Retrieving the COM class factory for component with CLSID {3D42CCB1-4665-4620-92A3-478F47389230} failed due to the following error: 80070005.
Techinal Support Details:
System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {3D42CCB1-4665-4620-92A3-478F47389230} failed due to the following error: 80070005.
at
System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType)
at
System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(Type objectType)
at
System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(Type serverType)
at
System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj)
at
Microsoft.Office.Server.Search.Administration.Gatherer.get_AdminObject()
at
Microsoft.Office.Server.Search.Administration.Gatherer.ProvisionGlobalProperties()
at
Microsoft.Office.Server.Search.Administration.SearchServiceInstance.Synchronize()
at
Microsoft.Office.Server.Administration.ApplicationServerJob.ProvisionLocalSharedServiceInstances(Boolean isAdministrationServiceJob)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
In order to fix this, we need to set the following permissions on the Service account:
- Navigate to Start->Control Panel->Administrative Tools->Component Services->Computers->My Computer->DCOM Config
- Right click on oSearch component and select Properties
- Click on the Edit... button on the Site Bindings dialog
- Select the Security tab
- On the Launch Activation Permissions section, select Customize and click on Edit…
- Now, for the Service Account, check the Local Launch and Local Activation checkboxes and click OK
- Similarly, on the Access Permissions section, select Customize and click on Edit…
- Now, for the Service Account, check the Local Access checkbox and click OK
- Finally, on the Configuration Permissions section, select Customize and click on Edit…
- Now, for the Service Account, check the Full Control and Read checkboxes and click OK
Perform an iisreset once. Next time onwards, this exception must not occur again.