in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

This Blog

Syndication

News

Jason Medero, MCP, MCT, MCTS, MVP (WSS) is a systems architect with a concentration in Microsoft Office SharePoint Server (MOSS) and its related Microsoft technologies. He is a managing partner of B&R Business Solutions, a central New Jersey-based firm specializing in SharePoint and surrounding technologies, infrastructure, real-time communications (OCS), and application development. He is an active member of the SharePoint User Group in New York City where he sits on the speaker selection committee. He also contributes his SharePoint knowledge as a mentor for some of the popular forums (MSD2D, MSDN).

Jason Medero SharePoint MVP: SharePoint Space for all things SharePoint, OCS, RMS, InfoPath, and Office

Some posts may be cut off because of Community Server. Please click on the blog titles link to get the full version :)!

After applying MOSS 2007 SP1 Event log error: Retrieving the COM class factory for component with CLSID {3D42CCB1-4665-4620-92A3-478F47389230} failed due to the following error: 80070005

I have recently been building out a few MOSS 2007 environments for a client with a big Ultima online fan Erik.  We have decided in the build process of each environment to include SP1 because of all of the bug fixes that have been resolved in this service pack.  We are building your classic environments POC, Test, UAT, Prod and while building our POC and Test environment we noticed an error in the event log immediately after applying MOSS 2007 SP1.  The error that was showing up in the event viewer was:

 

Application Event log error:

Event Type:        Error

Event Source:    Office SharePoint Server

Event Category:                Office Server Shared Services

Event ID:              6482

Date:                     1/22/2008

Time:                     12:40:03 PM

User:                     N/A

Computer:          MOSS01

Description:

Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance (a287d59e-47fa-4182-8eba-9b0f52f27f5b).

 

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.

System Event log error:


Event Type:        Error

Event Source:    DCOM

Event Category:                None

Event ID:              10016

Date:                     1/23/2008

Time:                     1:23:53 PM

User:                     <UserName>

Computer:          <Computer Name>

Description:

The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID

{3D42CCB1-4665-4620-92A3-478F47389230}

 to the user NORTHAMERICA\srvspdev1 SID (S-1-5-21-6776287-1952083785-2110791508-434436).  This security permission can be modified using the Component Services administrative tool.

 

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

 

So our first job was to identify the CLSID {3D42CCB1-4665-4620-92A3-478F47389230} which was the culprit causing the issue.  I took a look in the registry by going to START>>RUN>>REGEDIT then navigated under HKEY_CLASSES_ROOT\CLSID and began searching for the app id above.  Well I found it and did some digging in there and found a reg key called "App Id" this CLSID matched up to a CLSID that was located when I opened up the component services management console.  Ah HA we found pay dirt!  The Osearch COM object was to blame and for some reason the necessary accounts did not have the rights to access this object.  My friend Erik had the great idea to compare the launch and activation rights on a server with SP1 applied to a non-SP1 server what a concept!

Registry Editor where I found the CLSID app ID.

Regedit

Open up component services and locate the Osearch component.  Right click on it and go to properties and check to match up the app Id with the Id shown in the Reg key.

CLSID app ID

Below is another screen shot with the security tab being displayed.  Click the Edit button next to launch and activation permissions and that will display which accounts have what permissions to the specific component you have selected.

Osearch Properties


So the final test was to apply MOSS 2007 SP1 to the environment and see if applying the service pack would strip away those rights that were there previous to SP1.  So we first applied the WSS SP1 to the server and the permissions were not changed.  Finally we went and applied MOSS 2007 SP1 and immediately after the permissions on this COM object were gone!!!  The figures below show the permissions on the Osearch Com object before and after SP1 was applied.

This is what the launch permissions looked like on our server pre-Sp1.

Osearch before

This is what the permissions looked like immediately following the binary install of MOSS SP1...Yikes!!

Osearch after MOSS SP1


In order to solve this issue we simply copied the same rights that were on the MOSS 2007 server that didn't have SP1 and reapplied them to each of the servers in the server farm where the issue was occurring.  After a quick reboot this solved all of the errors that were occurring in the event viewer.  I have not completely validated that this is a known issue but we were definitely able to repro this issue in multiple medium farm environments where we have dedicated accounts for SSPadmin, Content Access Acount, Content Crawler account, App Pool Identity account, and a dedicated farm admin account.

One item to note is that this problem (DCOM errors in event viewer) did not seem to occur when we tried to reproduce in a small farm environment (1 server running everything but SQL) using one single account for all services.  The account running all services was a local administrator on the box so this might be the reason why we did not see these errors on the single server box.  As opposed to in our medium and large farm build out where the dedicated service accounts used were not granted local admin on the box.

So MOSS SP1 has been out for quite sometime now and I did not see barely anything that directly related to the issues that came about in my situation.  So I hope this helps or saves some people some time in the future when applying MOSS SP1. 

Cheers

 

Published Feb 08 2008, 03:19 PM by jmedero
Filed under:

Comments

 

SHAREPOINTBlogs.com Mirror said:

I have recently been building out a few MOSS 2007 environments for a client with a big Ultima online

February 8, 2008 3:12 PM
 

Raphael C said:

Thanks for the post Jason,

Would have loved to find your post a 2 weeks ago when we first encountered this issue.  It appears to only affect 64 bit MOSS Medium/Large farms (32bit Medium/Large farms and both 64bit and 32bit small farms seem fine after SP1).  

We noticed this originally as the backup GUI and STSADM commands will not work while you have this issue and applying MOSS Admin accounts permissions on the OSearch DCOM object resolves issues, Microsoft suggested solution below:

1) Start --> Administrative Tools -->Component Services

2) Double-click Component Services --> Computers -->My Computer -->DCOM Config

3) Find OSearch

4) Right Click OSearch and select properties

5) Select the Security Tab

6) Launch and Activation Permissions, Access Permissions, and Configuration

Permissions should be set to Customize

7) Click edit under Launch And Activation Permissions

8) The following permissions should be set as follows:

Administrators - local launch, local activation

SharePoint Service Account - local launch, local activation

System - local launch, local activation

wss_admin_wpg - local launch, local activation

wss_wpg - local lauch launch, local activation

9) Click edit under Access Permissions

10) The following permissions should be set

Administrator - local access

SharePoint Service Account - local access

system - local access

wss_admin_wpg - local access

wss_wpg - local access

11) Click edit under Configuration Permissions

12) The following permissions should be set

Administrators - Full Control

Creator Owner - Special Permissions

Power Users - Read

SharePoint Service Account Full Control

System Full Control

Users - Read

WSS_ADMIN_WPG - Full Control

February 11, 2008 4:58 AM
 

Spence said:

This isn't new for SP1 it's also the case for the previous rollup fixes:

www.harbar.net/.../SharePoint-Farm-Least-Privilege-and-hotfix-packages.aspx

February 11, 2008 3:54 PM
 

X_Ray said:

Hi, I ave faced the same error and applied the same technique, however i only applied it to the sspadmin and moss search account, do i need to do it to all other accounts (content access, wss search account, wss content access,ssp application pool,...)

my second question, is a reboot for the system is required, or can i just use iisreset ?

Thanks for the info and great article

February 12, 2008 2:15 AM
 

jmedero said:

Hey X_Ray

The accounts that I had to add was the farm admin account, the content access account and the farm search service account.

February 13, 2008 2:51 PM
 

Rob Head said:

I have a multiple WFE farm with a dedicated index server.  Although you see the errors on WFE servers (that are Search servers but not indexers) and not on the Index server, the permissions changes need applying on the index server.

X_Ray - A reboot is not required.

Thanks for a great post.  Saved me loads of heat!

February 17, 2008 7:25 AM
 

Adam Andersspn said:

The OSearch and SPSearch services were causing troubles in our case:

tahoesolutions.blogspot.com/.../event-6482-and-6398-errors-in-event.html

February 20, 2008 2:11 PM
 

Fabian Tuender said:

I was shocked to see all the errors after applying sp1 but at the end it turns out to be working fine again after setting the security. You saved me some trouble, thanx!

March 7, 2008 8:42 AM
 

Sharepoint Backup problem post SP1 - OSearch DCOM « Gavin’s Sharepoint Blog said:

Pingback from  Sharepoint Backup problem post SP1 - OSearch DCOM &laquo; Gavin&#8217;s Sharepoint Blog

May 8, 2008 8:43 AM
 

tab crawler said:

Pingback from  tab crawler

May 13, 2008 5:41 PM
 

After Installing MOSS SP1 SharePoint Reporting Services add in throws error “Object reference not set to an instance of an object” | BatBox said:

Pingback from  After Installing MOSS SP1 SharePoint Reporting Services add in throws error &#8220;Object reference not set to an instance of an object&#8221; | BatBox

May 29, 2008 1:44 PM
 

Gabriel Matthews said:

I do appreciate the extremely informative and descriptive post here.  It helped me quickly and concisely.  Only problem is that the screenshots are REALLLLLY small so I had to take your word for some stuff in those.  :)  But again, thanks!

June 13, 2008 3:33 PM
 

benjamin said:

We figured out the same permission problem as the reason for a missing audience group import from the Active Directory.

After changing the persmissions, the audiences are imported as expected.

As descibed here:

benjaminblog.wegneronline.de/.../ProblemeMitZielgruppen.aspx

July 13, 2008 9:53 AM
 

event id 10016 said:

Pingback from  event id 10016

August 2, 2008 9:03 AM
 

Sheetal said:

Thanks for the valuable blog!!

I am fighting for search and replace functionality in MOSS

I have created an application to read the word documents which are result of the MOSS search webservice.

I am opening those documents and replacing the searched word with the replace text.

This works fine when i run through local asp.net application like ..website..

however, when i deploy it to moss, it starts giving error...

file corrupted.

Please can you help me in this?

Thanks

Sheetal

September 30, 2008 8:46 AM

Leave a Comment

(required )  
(optional )
(required )  
Add

About jmedero

Jason Medero, MVP, MCT, MCTS –Is a systems architect with a concentration in Microsoft SharePoint Server and its related Microsoft technologies. He is a managing partner of B&R Business Solutions, a central New Jersey based firm specializing in SharePoint and surrounding technologies, infrastructure, messaging and application development. He is an active member of the SharePoint community, contributing as a mentor for both the SharePoint Portal Server and Windows SharePoint Services forums on MSD2D.com along with many other popular forums.

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts