Microsoft Land

Archive for the ‘Search Server 2010’ Category

If SharePoint Search is throwing the below error while crawling the site collection

SharePoint Search can’t crawl SharePoint site – Error HRESULT E_FAIL has been returned from a call to a COM component

Possible issue could be with the Impersonation settings in the web.config

Edit the web.config of the web application, and make sure that the identity impersonation is set to “true”.

<identity impersonate=”true” />

First of all Happy New Year to everyone.

I am actually trouble shooting one of the SharePoint 2010 newly setup Service Farm which is causing issues during Replicating the user profile from Active directory.

One simple step that the Administrator of the Farm who installed it forgot was, giving the “Replicate Directory Changes” permission to the user account which is configured as the administrative account for the User Profile Service Application. In order to make the Fore Front Identity Manager properly do it’s job of replicating the content this permission has to be given to the account which is the administrative account that does the replication BETWEEN the active directory and SharePoint.

Login to the Active Directory Server (i am assuming Windows 2008 R2) and perform the following steps to give the permissions.

1) Launch “Active Directory Users and Computers”

2) Right click on the domain which needs to be replicated and click on properties.

3) Click on “Delegate Control”, Add the User Profile administrative account user and click on next.

4) Make sure “This folder, existing objects in the folder and Creation of new objects in the folder” radio button is selected and click on Next

5) “General” checkbox is checked by default, and from the list of permissions select “Replicating Directory Changes” checkbox and click on next and finish.

This will grant the administrative account to perform the replication of the objects between Active Directory and SharePoint.

“The filtering process could not load the item. This is possibly caused by an unrecognized item format or item corruption. 0x40d30″

Today saw this error in the Crawl logs when the users noticed that SharePoint Search is not returning Relevant results based on the content in the PDFs in the site.

Reason is simple, make sure that the PDF filter is configured Properly on the Application Server on which Search Service is running.  In my case Filter is configured on one Node which is not the one that is running the Search service.  So had to configure it properly on the right box.

To know about how to configure the Search iFilter for PDF on SharePoint 2010 refer to this link.

There are numerous articles on this available on Web.  But thought to add it into the Blog for my Record.

This article is meant to guide you through the steps that are required to configure Adobe PDF iFilter for SharePoint 2010 / Search Server 2010.

Download the iFilter plugin from Adobe along with the PDF icon

Install the filter, Copy to icon image to the images folder on 14 hive (Template/Images)

Add Mapping configuration to the docIcon.xml under XML folder (Template/XML)

<Mapping Key=”pdf” Value=”pdficon_small.gif”/>

Add PDF file type as a managed file type for Search Service Application.

Central Admin -> Manage Service Applications -> Search Service Application -> File Types link on the left hand navigation bar.

Click on New file type and and add the extension “PDF” (Just PDF without a DOT)

Open Registry editor.  Start -> Run -> Regedit

Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\14.0\Search\Setup\ContentIndexCommon\Filters\Extension

Right click on “Extension” and select New -> Key.  Name the key as “.PDF” (DOT required here).

Now add the GUID {E8978DA6-047F-4E3D-9C78-CDBE46041603} for the (Default) Value Name.

Restart Search service

NET STOP OSearch14 (under command line or from services in administrative tools)


Perform an Incremental / Full Crawl based on your need and we now have the PDF’s in our search results


Last couple of weeks are crazy as we are working on moving few of our projects to Production.  Not able to post any articles.  But it was helpful as becuase of too much work / deployments I am able to come across many issues and fixes, which i have listed seperately.  I will keep posting the articles based on my experiences over there.

So now, coming back to the story

We have a Huge Content database with Intellectual property of client as documents / Metadata configured on them using External Columns (BCS Models) which we had to migrate to Production.  Search is configured on it.  After moving the site to Production, I came across this error when the Site is trying to generate search results.

System.Runtime.InteropServices.COMException: Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA)

This is not an error specific to SharePoint / Search but it occur happen in .NET applications too which are hosted on Windows Server 2008. The environment i am using is Windows Server 2008 R2.

Ok now to resolve this issue,

Open Group Policy editor on the server (which is hosting the Search Service Application): Start -> Run -> gpedit.msc

Computer Configuration -> Adminstrative Templates -> System -> User Profiles

there will be a setting which says “Do not forcefully unload the user registry at user Logoff” by this this will not be configured.  Enable this setting and it should resolve the issue.

Hope this helps.

My Tweets


Get every new post delivered to your Inbox.

Join 121 other followers