Microsoft KB Archive/891065

= No items are returned in the search results, and you receive a &quot;No matching documents were found&quot; error message when you search for content in PDF documents that are streamed from .aspx pages in SharePoint Portal Server 2003 =

Article ID: 891065

Article Last Modified on 6/5/2006

-

APPLIES TO


 * Microsoft Office SharePoint Portal Server 2003

-



Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SYMPTOMS
Consider the following scenario in Microsoft Office SharePoint Portal Server 2003. Content in Adobe Portable Document Format (PDF) documents is streamed from .aspx pages. When you search the portal site for this content, no items are returned in the search results. Additionally, you receive the following error message:

No matching documents were found

You experience these symptoms even though the content that you search for exists in .pdf documents on the portal site.



CAUSE
This problem occurs if the .pdf documents that are streamed from .aspx pages are incorrectly indexed in SharePoint Portal Server 2003. Typically, SharePoint Portal Server 2003 uses the file name extension of the document that is being indexed to determine the correct filter to use. When a document is streamed from an .aspx page, SharePoint Portal Server 2003 ignores the ContentType property that may be specified in the stream. SharePoint Portal Server 2003 uses the file name extension of the .aspx page instead of the MIME type to determine the filter to use for indexing. Therefore, the streamed .pdf document is incorrectly indexed.



How to obtain the hotfix
This issue is fixed in the SharePoint Portal Server 2003 post-Service Pack 1 Hotfix Package December 21, 2004. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

891638 Description of the Microsoft Office SharePoint Portal Server 2003 post-Service Pack 1 hotfix package: December 21, 2004

Add the Extension registry entry
To enable this hotfix after you install it, add the Extension registry entry to the following registry subkey, and then set the registry entry to &quot;.pdf&quot;:

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk. To enable this hotfix, follow these steps:  Click Start, click Run, type regedit in the Open box, and then click OK. Locate, and then click the following registry subkey:

HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\application/pdf

 On the Edit menu, point to New, and then click String Value. Type extension, and then press ENTER. Right-click Extension, and then click Modify. In the Value data box, type .pdf .</li> Click OK, and then click Exit on the File menu to quit Registry Editor.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

<div class="moreinformation_section">

MORE INFORMATION
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

Additional query words: sps active server pages

Keywords: kberrmsg kbbug kbfix kbqfe kbhotfixserver KB891065

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.