Re: IE cannot download .pdf, .doc, .xls from HTTPS site
- From: mshahcaci <mshahcaci@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 5 Sep 2008 12:47:02 -0700
Hi,
Did you get aresolution to this problem. I am in desperate need of an answer
to this problem as I ahve 100's of clients waiting for this to work.
Thx
M
"Andrew Hayes" wrote:
Revisiting this thread as it's a problem that has recently cropped up with.
Win2K3 SP2 and IE7.
We have a web server that creates XLS documents for users to download, all
the IE versions after 6 SP1 fail to download the file over HTTPS.
Yes, yes. It's a possible server-side misconfiguration problem... But that's
the way that IIS works out of the box for R2 and for new installs of IE7.
Anyhow, I use this C# code to transmit the XLS document to the browser after
it has been created on the server -
Response.ClearHeader();
Response.ClearContent();
Response.Clear();
Response.ContentType = "text/text";
Response.AddHeader( "Content-Disposition", "inline; filename =" + FileName );
Response.AddHeader( "Content-Length", FileSize.ToString() );
Response.BinaryWrite(Buffer);
Response.Buffer = true;
Response.Flush();
Response.Clear();
Response.End();
The above code correctly shows the Download file dialog, or opens the Excel
document in a window (depending on the client settings), so long as the user
connects to the website via HTTP.
As soon as they try using HTTPS they get the OP's error, but before they
have even downloaded the file. There is no download prompt.
What I am trying to avoid is having users mess about with their IE settings
just to download a few Excel documents, especially since the above code works
fine for PDF documents over HTTPS (I'm talking about over 10,000 users here
from over 100 companies - and the only complaints are from IE users).
Yes, the site they are accessing is in their IE Trusted Zone.
In the interest of bettering customer relations (mine specificially), I have
no problem with making whatever changes I need to make to the IIS servers to
get XLS downloads over HTTPS to work every time, regardless of browser
settings or versions. So far, nothing I've tried has worked.
If someone would be so kind as to spell out what IIS settings should be
changed, and exactly what C# code I should be using, then I would be very
grateful and you'd earn a lot of kudos.
- Next by Date: xenical suisse par email commander xenical en France en ligne commander comprime de xenical us usa commander xenical en France en ligne aucune prescription xenical suisse le plus bon marche
- Next by thread: xenical suisse par email commander xenical en France en ligne commander comprime de xenical us usa commander xenical en France en ligne aucune prescription xenical suisse le plus bon marche
- Index(es):
Relevant Pages
|