Windows2008 R2 open the PDF issue
Monday, April 19, 2010 1:59You know, the Windows2008 R2 use the IIS7.5, but unluckly, it has the bug when you try to open the pdf file on your web browser. As a webmaster, you should take the initiative to solve the problem. I spent the whole afternoon to find the issue in google, then I got some infomation in Microsoft KB.
Consider the following scenario:
- You install Internet Information Services (IIS) 7.5 on a computer that is running Windows Vista, Windows 7, Windows Server 2008, or Windows Server 2008 R2.
- You host some Portable Document Format (PDF) documents on an IIS Web site on this computer.
- You have a client computer that has the Adobe PDF Reader plug-in enabled on a Web browser.
- You use this Web browser to open one of the PDF documents that is hosted on the IIS Web site.
In this scenario, you cannot open the PDF document. Additionally, the Web browser may stop responding.
Note
- You may still be able to open other PDF documents on this IIS Web site when this issue occurs.
- This issue does not affect all versions of the Adobe PDF Reader plug-in.
But what the IIS7.5 bug cause the problem like above?
This issue occurs because of a design change in IIS 7.5.
When you try to open a PDF document on an IIS Web site, the Adobe PDF Reader plug-in sends a request that includes multiple byte ranges to IIS 7.5. If the union of the multiple byte ranges is a single byte range, the response from IIS 7.5 contains the byte ranges merged into a single byte range (also known as a merged byte-range request). The response to this single byte range does not include the multipart/byteranges content type. However, the multipart/byteranges content type is expected to be included in a response to a merged byte-range request. This behavior causes the Adobe PDF Reader plug-in to handle the response incorrectly. Therefore, the PDF document cannot be opened.
Note The multipart/byteranges content type is included in a regular multiple byte-ranges response.
But how to fix it? I find the answer in the Microsoft KB. They give us a Hotfix below:
http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=979543&kbln=en-us
I test it in the server, that’s ok, no problem. The PDF issue fixed! Thanks.