« Previous Next »

Thread: PDF Download Problems with IIS7

Last post 11-30-2009 6:48 AM by Alesh_77. 81 replies.

Average Rating Rate It (5)

RSS

Page 2 of 6 (82 items) < Previous 1 2 3 4 5 Next > ... Last »

Sort Posts:

  • 10-17-2009, 11:34 AM In reply to

    Re: PDF Download Problems with IIS7

    I have to ask a simple question - do you have mime-types properly set up for PDF? Sometimes browsers are clever enough to figure out small files even if the mime types are not set, but choke on doing the same for large files.

  • 10-18-2009, 5:31 PM In reply to

    • rusware
    • Not Ranked
    • Joined on 10-12-2009, 5:44 AM
    • Posts 7

    Re: PDF Download Problems with IIS7

    As stated earlier by Anil this is not a MIME type issue, and ny default the MIME type for PDF does exist is IIS 7.5

    If anyone does create a handler could they please post here, save us all having to do the work.

    Much appreciated.

  • 10-18-2009, 6:05 PM In reply to

    Re: PDF Download Problems with IIS7

    This appear only to be an issue with Windows 2008 r2.

    If you are having a problem with standard windows 2008 then it is likely anther issue.

    and AFAIK windows 2008 r2 is still not released for the public yet. Heaven only know why you want them in production.

     

  • 10-18-2009, 11:11 PM In reply to

    Re: PDF Download Problems with IIS7

    Why not?  This is a problem with a workaround, and no more critical than issues that happen on other server platforms that have been in the wild for years.  W2k8 R2 was RTM on August 14, 2009.  It is not like it is a pre-release version.  There is no reason to wait for a shrink-wrapped box for a product that has hit the VL and is fully supported by MS.  Performance alone is a reason to want to use it.

    Any applicable fixes for problems show up in Windows Update, just like any other supported product.

  • 10-18-2009, 11:14 PM In reply to

    Re: PDF Download Problems with IIS7

     

    Toby.Considine:

    I have to ask a simple question - do you have mime-types properly set up for PDF? Sometimes browsers are clever enough to figure out small files even if the mime types are not set, but choke on doing the same for large files.

    Yes, MIME type is received by the browser - using Firebug to watch the Net information.  Content size received from the server changes with each request - but for me that is because it is a linearized document (loaded over multiple parallel HTTP requests).

  • 10-19-2009, 10:16 AM In reply to

    Re: PDF Download Problems with IIS7

    Wow... Just wow.

    2008 R2 went RTM August 15, has been available in the Volume licensing channel and now, 2 months later, this issue is still present.

    How is it acceptable that Microsoft has not released a fix yet? I could understand if it was some obscure issue, but we're talking about a fundamental problem with the way IIS7.5 handles PDF files. PDF, widely used almost everywhere, needs to work.

    I'm shocked that there hasn't been a fix for this yet and as for using a different server for a workaround, I find that unacceptable.

     

  • 10-19-2009, 5:10 PM In reply to

    Re: PDF Download Problems with IIS7

    Fair enough I didn't realise it had been so long but it is still in the infancy of this OS. I am too surprised that MS haven't fixed this yet I don't understand what coudl be so different in IIS7.5/Win2008r2 to make this sucha  showstopper.

    joseph.ferris:

    Why not?  This is a problem with a workaround, and no more critical than issues that happen on other server platforms that have been in the wild for years.  W2k8 R2 was RTM on August 14, 2009.  It is not like it is a pre-release version.  There is no reason to wait for a shrink-wrapped box for a product that has hit the VL and is fully supported by MS.  Performance alone is a reason to want to use it.

    Any applicable fixes for problems show up in Windows Update, just like any other supported product.

     
  • 10-22-2009, 2:36 PM In reply to

    Re: PDF Download Problems with IIS7

    I can confirm this problem with IIS7 on Windows 2008 R2. We have exactly the same issues with PDF files

  • 10-22-2009, 2:51 PM In reply to

    Re: PDF Download Problems with IIS7

    Hi,

    We have migrated a website running on windows 2003 servers to servers running Windows 2008R2 64bits today and we have exactly the same problem. It's really strange that an OS server could become gold with a webserver were you can't even publish pdf files. Even if the bug concerns acrobat reader, it works with all other web server (apache, iis 5, iis 6, iis 7 ...).

     I tried downloading the pdf files from a linux client (debian 5.0) and it works meaning the culpit it probably acrobat reader but even if adobe publishes a fix for iis 7.5, it's impossible for us to ask to our clients (bank companies, real estate companies ...) to update the acrobat reader installed on their computer to use the latest version. It's even more difficult to explain that they can't download documents from our web sites because their pdf clients is buggy but it works for all other web site they consult ?!?).

     

    It's definitively impossible to switch to a web server running Windows 2008 R2 until the web server can't transmit the data to acrobat reader.

     

     

    Lionel Schiepers

    ls at bvdep dot com

    Bureau van Dijk Electronic Publishing

  • 10-22-2009, 3:24 PM In reply to

    Re: PDF Download Problems with IIS7

     I've created this post on the adobe support web site:

    http://forums.adobe.com/thread/510857

     

    Hopping it will help to find a solution.

     

     

    Lionel Schiepers.

     

  • 10-22-2009, 4:27 PM In reply to

    Re: PDF Download Problems with IIS7

    I hope it will take less time than apple to resolve the guest account problem that wipe all your profile data.... )-:

     

    As a work around, you can use your playstation 3 to read the pdf files. It's even faster than Windows 7 to boot and connect to the Internet ;-))

     

     

     

     

     

  • 10-26-2009, 11:35 AM In reply to

    • t.a.King
    • Not Ranked
    • Joined on 10-14-2009, 9:31 PM
    • Posts 4

    Re: PDF Download Problems with IIS7

    Here's the official word on what the problem is, from MS tech support:

    In IIS7.5 we have implemented an optimization code that handles especially byte-ranges request whose result is a single range as follows.
     
    When a client makes a request of byte-ranges whose result is a single range, IIS 7.5 does not include the media type in the response! This seems to break Adobe-reader add-on in IE.
     
    In IIS7 and below we treated byte-ranges requests whose result is a single range the same manner as byte-ranges requests whose result is NOT a single range meaning that we all the time sent a media type in the response header.
     
    Example:
     
    The below request:
     
    Command: GET
      + URI: /test.pdf
       ProtocolVersion: HTTP/1.1
       Accept:  */*
       Range: bytes=153572-186237, 748935-750373, 748238-748934, 186238-411153, 750374-750792, 411154-486125, 486126-748237


     
    Is equivalent to making a request to range 153572 - 750792

     IIS7 will respond with
     
    - Http: Response, HTTP/1.1, Status Code = 206, URL: /test.pdf
       ProtocolVersion: HTTP/1.1
       StatusCode: 206, Partial content
       Reason: Partial Content
       ContentType: multipart/byteranges; boundary=<q1w2e3r4t5y6u7i8o9p0zaxscdvfbgnhmjklkl>


     
    IIS 7.5 will respond with
       ProtocolVersion: HTTP/1.1
       StatusCode: 206, Partial content
       Reason: Partial Content
       ContentType: application/pdf


     
    So in the case of IIS7.5, it is just like we are responding to a single range request “153572 - 750792 “  in which the HTTP RFC says that you should NOT send a media type in the response header!
     
    The IIS 7 and IIS7.5 behavior are both HTTP RFC compliant 
      
    A response to a request for a single range MUST NOT be sent using the
       multipart/byteranges media type.  A response to a request for
       multiple ranges, whose result is a single range, MAY be sent as a
       multipart/byteranges media type with one part. A client that cannot
       decode a multipart/byteranges message MUST NOT ask for multiple
       byte-ranges in a single request.

     

  • 10-26-2009, 11:42 AM In reply to

    Re: PDF Download Problems with IIS7

    All well and good, at least now I understand what the problem is..

    Did tech support also mention how they were going to fix it?

  • 10-26-2009, 5:26 PM In reply to

    • t.a.King
    • Not Ranked
    • Joined on 10-14-2009, 9:31 PM
    • Posts 4

    Re: PDF Download Problems with IIS7

    Adobe was finally able to recreate the problem on Friday, and they are supposed to be working on it.  (I don't know what their issue was with not being able to recreate it, but I did find out over the weekend that the behavior is different if the client you are using to browse the website is in a remote desktop session - everything seems to work fine.)

    Not sure what IIS Core team is doing, if anything.  Even if Adobe provides a patch, I'm not too sure about using 2008 r2 as public web server if it requires the client to have the latest and greatest plugin.  Microsoft may have the letter of the law on their side regards the RFC, but sometimes being right just isn't enough.

  • 10-26-2009, 5:53 PM In reply to

    Re: PDF Download Problems with IIS7

    Hello everybody,

    Too tired to try it today but this article seems interesting to publish PDF file via a selfmade httphandler.

    The sample code contains a RangeRequestHandlerBase class  that can do byte serving meaning the background download of acrobat reader should still work. The solution of just streaming pdf files is not the best way for large file because you can't scroll in the document until the data are loaded from the server.

     

    http://dotnetslackers.com/articles/aspnet/Range-Specific-Requests-in-ASP-NET.aspx


    Lionel Schiepers

    Bureau van Dijk Electronic Publishing

Page 2 of 6 (82 items) < Previous 1 2 3 4 5 Next > ... Last »
Microsoft Communities