Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Cannot Download XLS Document Via HTTPS

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Related Topics:
Open a document vs. download - A site I am working on has several non-HTML documents (Word, Excel, PDF, and Zip files). Pages in the site have links to these if you click on the links the documents open in new windows. Instead of opening new windows we would rather have a..

Unable to download files from https with Internet Explorer - Hello, I am using tomcat with SSL which is running fine, however I have a problem to download an excel files with internet Explorer. In fact I am using a servlet which stream data in the correct format to create an excel files. This servlet is..

IIS 5.1 and PDF Document - Hi! Does IIS 5.1 index PDF I have moved PDF (ans also Word, and Excel) file into wwwroot, but they don't seem to be getting indexed. Thanks, Jim

cannot add default document iis 6 - I have a 2003 server running iis6. Whenever I try and set the default document for a site than the four that are setup when you create the site), such as IIS does not server the default document. I have checked the..

IIS 6 / default document doesn't come up - Hello, We are running an IIS 6.0 server behind an ISA server and it won't serve the default document up. when the page like it comes up. Has anyone that yet? all hints are welcome and
Next:  IIS: "Error Copying File or Folder" using BITS/WEBDAV  
Author Message
Andrew Hayes

External


Since: Dec 27, 2007
Posts: 9



(Msg. 1) Posted: Thu Dec 27, 2007 4:36 pm
Post subject: Cannot Download XLS Document Via HTTPS
Archived from groups: microsoft>public>inetserver>iis (more info?)

I've seen old threads and posts about this, but it's a problem that has
recently cropped up with Win2K3 R2 SP2 and IE6 SP2, IE7.

We have a secure web server that creates Excel documents of selected data
then outputs the document as a page to the user, with this code:

FileStream fs = new FileStream( AbsDir + "\\" + FileName, FileMode.Open );
long fsize = fs.Length;
byte[] Buffer = new Byte[fsize];
fs.Read( Buffer, 0, (int)fsize );
fs.Close();

Response.ClearHeader();
Response.ClearContent();
Response.Clear();
Response.ContentType = "application/octet-stream-dummy";
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();

Our existing server (2000 Advanced Server SP4) is working fine, but the new
server (2003 64-bit Standard R2 SP2) doesn't. 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 an error. No download dialog
is shown and no file is downloaded.

What I am trying to avoid is having users mess about with their IE settings
just to download Excel documents, especially since the above code works fine
for PDF documents over HTTPS, and yes, the site they are accessing is in
their IE Trusted Zone.

I certainly can't have them make registry changes or check the "Do not save
encrypted pages to disk" checkbox every time they use our site, and then
uncheck it when they visit other sites. I'm talking about over 10,000 users
here from over 100 companies.

In the interest of bettering customer relations (which is why we're
upgrading the servers), 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.

 >> Stay informed about: Cannot Download XLS Document Via HTTPS 
Back to top
Login to vote
Anthony Jones

External


Since: Jan 28, 2006
Posts: 170



(Msg. 2) Posted: Fri Dec 28, 2007 7:03 am
Post subject: Re: Cannot Download XLS Document Via HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Andrew Hayes" <AndrewHayes.DeleteThis@discussions.microsoft.com> wrote in message
news:2AACBE2F-7A47-40DF-89EA-674738A83547@microsoft.com...
> I've seen old threads and posts about this, but it's a problem that has
> recently cropped up with Win2K3 R2 SP2 and IE6 SP2, IE7.
>
> We have a secure web server that creates Excel documents of selected data
> then outputs the document as a page to the user, with this code:
>
> FileStream fs = new FileStream( AbsDir + "\\" + FileName,
FileMode.Open );
> long fsize = fs.Length;
> byte[] Buffer = new Byte[fsize];
> fs.Read( Buffer, 0, (int)fsize );
> fs.Close();
>
> Response.ClearHeader();
> Response.ClearContent();
> Response.Clear();
> Response.ContentType = "application/octet-stream-dummy";
> 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();
>
> Our existing server (2000 Advanced Server SP4) is working fine, but the
new
> server (2003 64-bit Standard R2 SP2) doesn't. 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 an error. No download
dialog
> is shown and no file is downloaded.
>
> What I am trying to avoid is having users mess about with their IE
settings
> just to download Excel documents, especially since the above code works
fine
> for PDF documents over HTTPS, and yes, the site they are accessing is in
> their IE Trusted Zone.
>
> I certainly can't have them make registry changes or check the "Do not
save
> encrypted pages to disk" checkbox every time they use our site, and then
> uncheck it when they visit other sites. I'm talking about over 10,000
users
> here from over 100 companies.
>
> In the interest of bettering customer relations (which is why we're
> upgrading the servers), 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.

Your code can be replaced with this:-

Response.Clear();
Response.ContentType = "application/octet-stream";
Response.AddHeader( "Content-Disposition",
"attachment; filename =" + FileName );

Response.WriteFile(AbsDir + "\\" + FileName);

However if these files are large you should read this:-

http://support.microsoft.com/kb/812406

(Note in the more info repro code Response.Flush() is used, IMO, this is not
desirable because it will force Transfer encoding to be used which may mean
the browser won't be able to display a meaningful progress bar.)

--
Anthony Jones - MVP ASP/ASP.NET

 >> Stay informed about: Cannot Download XLS Document Via HTTPS 
Back to top
Login to vote
Andrew Hayes

External


Since: Dec 27, 2007
Posts: 9



(Msg. 3) Posted: Fri Jan 04, 2008 12:44 am
Post subject: Re: Cannot Download XLS Document Via HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the tip Anthony. I tried that and still no joy.

In fact, I'm not sure how I would fix it. As a test, I created a Virtual
Directory on the server (set for read only, browsing enabled) and copied an
XLS and PDF document to there.

By going to the URL, https://myserver/downloads, I can see the 2 files and
can download either by clicking on them. However, if I look at the properties
of the link for the XLS document, copy the entire URL and paste that directly
into the address bar, I get the error.

Is this a security feature of IIS 6 in Windows 2003 R2, or IE 6/7, that
doesn't allow downloads of files directly from the address bar?

As a second test, I tried exactly the same setup on my XP SP2 desktop.
Installed a server certificate on it so I can use HTTPS, created the virtual
directory, enabled browsing, copied a bunch of different files to the folder,
then browsed the files through IE7.0.5730.

I could download all of them by clicking on the link, but only the PDF could
be saved by pasting the URL directly. The DivX, WMA, WMV, and AVI files did
nothing at all, while the DOC, PPT, ISO and XLS files popped up the save
dialog but generated the error -

"Internet Explorer was not able to open this Internet site. The requested
site is either unavailable or cannot be found. Please try again later."

Oh. And just to throw some additional light on it - IE6.0.2900 *will*
download the files via the direct URL
(https://mypc/downloads/sometestexceldoc.xls), but IE6.0.3790 *will not*,
generating the error mentioned above. However, if I clear the Temporary
Internet Files, then I *can* download the files correctly.

I've also tested this with Opera 9.25 and FireFox 2.0.11. Both of those
applications will correctly download the files from the direct URL.

Feel free to try this test yourselves and let me know if you get the same
issue. If not, I would really like to know how your IIS is setup to allow
this. I do not want to be telling all 10,000+ users to clear their temporary
internet folder everytime they want to download *certain* files from our
servers.
 >> Stay informed about: Cannot Download XLS Document Via HTTPS 
Back to top
Login to vote
Anthony Jones

External


Since: Jan 28, 2006
Posts: 170



(Msg. 4) Posted: Fri Jan 04, 2008 12:02 pm
Post subject: Re: Cannot Download XLS Document Via HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Andrew Hayes" <AndrewHayes.DeleteThis@discussions.microsoft.com> wrote in message
news:FB9C528E-1338-4F2B-A051-A5D0A2F6C2CB@microsoft.com...
> Thanks for the tip Anthony. I tried that and still no joy.
>
> In fact, I'm not sure how I would fix it. As a test, I created a Virtual
> Directory on the server (set for read only, browsing enabled) and copied
an
> XLS and PDF document to there.
>
> By going to the URL, https://myserver/downloads, I can see the 2 files and
> can download either by clicking on them. However, if I look at the
properties
> of the link for the XLS document, copy the entire URL and paste that
directly
> into the address bar, I get the error.
>
> Is this a security feature of IIS 6 in Windows 2003 R2, or IE 6/7, that
> doesn't allow downloads of files directly from the address bar?
>
> As a second test, I tried exactly the same setup on my XP SP2 desktop.
> Installed a server certificate on it so I can use HTTPS, created the
virtual
> directory, enabled browsing, copied a bunch of different files to the
folder,
> then browsed the files through IE7.0.5730.
>
> I could download all of them by clicking on the link, but only the PDF
could
> be saved by pasting the URL directly. The DivX, WMA, WMV, and AVI files
did
> nothing at all, while the DOC, PPT, ISO and XLS files popped up the save
> dialog but generated the error -
>
> "Internet Explorer was not able to open this Internet site. The requested
> site is either unavailable or cannot be found. Please try again later."
>
> Oh. And just to throw some additional light on it - IE6.0.2900 *will*
> download the files via the direct URL
> (https://mypc/downloads/sometestexceldoc.xls), but IE6.0.3790 *will not*,
> generating the error mentioned above. However, if I clear the Temporary
> Internet Files, then I *can* download the files correctly.
>
> I've also tested this with Opera 9.25 and FireFox 2.0.11. Both of those
> applications will correctly download the files from the direct URL.
>
> Feel free to try this test yourselves and let me know if you get the same
> issue. If not, I would really like to know how your IIS is setup to allow
> this. I do not want to be telling all 10,000+ users to clear their
temporary
> internet folder everytime they want to download *certain* files from our
> servers.
>

There is too much detail here. Can't see the wood for the trees,

Lets forget other browsers and stick with IE7 running on XP SP2. The server
is Windows 2003. Lets also forget directory browsing (I never enable that
and its distracting). We know we have virtual folder called downloads
containing an excel document called sometestexceldoc.xls.

https://myServer/downloads/sometestexceldoc.xls

the above is placed in the address bar. What happens?

BTW, Get this:- www.fiddlertool.com

Install it and have it running when doing the test. It will show you
exactly what the converstation between the browser and the web server
contains. You can use it to compare successful downloads with failed ones.

Also check the server mimemap and ensure that .xsl is mapped to the
appropriate mimetype.

--
Anthony Jones - MVP ASP/ASP.NET
 >> Stay informed about: Cannot Download XLS Document Via HTTPS 
Back to top
Login to vote
Andrew Hayes

External


Since: Dec 27, 2007
Posts: 9



(Msg. 5) Posted: Sun Jan 06, 2008 8:03 pm
Post subject: Re: Cannot Download XLS Document Via HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sorry about that Anthony. Habitual for me to try any and everything to find a
workaround that works consistently.

Anyhow. Back to basics. Installed the Fiddlertool 2.0, enabled the HTTPS
decryption, and captured the session info.

This is what I had for the header information when I *attempt* to download
the XLS document from the server via the URL:

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 246272
Content-Type: application/vnd.ms-excel
Last-Modified: Mon, 07 Jan 2008 02:28:13 GMT
Accept-Ranges: bytes
ETag: "69d726f4d450c81:4fa"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Mon, 07 Jan 2008 02:43:41 GMT

The header information for the PDF document that downloads successfully from
the URL is:

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 22827
Content-Type: application/pdf
Last-Modified: Mon, 07 Jan 2008 02:16:04 GMT
Accept-Ranges: bytes
ETag: "4fa92341d350c81:4fa"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Mon, 07 Jan 2008 02:44:34 GMT

I've also tried setting the Cache-Control header on the server side to
public and max-age=86400, and even removing it completely, none of which had
any affect. This would seem to indicate that KB316431 (the part about having
no-cache set) is not applicable in this case.

I also changed the MIME-type so that XLS was "application/octet-stream" and
then "text/plain", but the same problem occurs for both, just the header
shows the different content-type.

Anything else I should try?
 >> Stay informed about: Cannot Download XLS Document Via HTTPS 
Back to top
Login to vote
Andrew Hayes

External


Since: Dec 27, 2007
Posts: 9



(Msg. 6) Posted: Sun Jan 06, 2008 8:03 pm
Post subject: Re: Cannot Download XLS Document Via HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sorry about that Anthony. Habitual for me to try any and everything to find a
workaround that works consistently.

Anyhow. Back to basics. Installed the Fiddlertool 2.0, enabled the HTTPS
decryption, and captured the session info.

This is what I had for the header information when I *attempt* to download
the XLS document from the server via the URL:

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 246272
Content-Type: application/vnd.ms-excel
Last-Modified: Mon, 07 Jan 2008 02:28:13 GMT
Accept-Ranges: bytes
ETag: "69d726f4d450c81:4fa"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Mon, 07 Jan 2008 02:43:41 GMT

The header information for the PDF document that downloads successfully from
the URL is:

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 22827
Content-Type: application/pdf
Last-Modified: Mon, 07 Jan 2008 02:16:04 GMT
Accept-Ranges: bytes
ETag: "4fa92341d350c81:4fa"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Mon, 07 Jan 2008 02:44:34 GMT

I've also tried setting the Cache-Control header on the server side to
public and max-age=86400, and even removing it completely, none of which had
any affect. This would seem to indicate that KB316431 (the part about having
no-cache set) is not applicable in this case.

I also changed the MIME-type so that XLS was "application/octet-stream" and
then "text/plain", but the same problem occurs for both, just the header
shows the different content-type.

Anything else I should try?
 >> Stay informed about: Cannot Download XLS Document Via HTTPS 
Back to top
Login to vote
Andrew Hayes

External


Since: Dec 27, 2007
Posts: 9



(Msg. 7) Posted: Sun Jan 06, 2008 8:03 pm
Post subject: Re: Cannot Download XLS Document Via HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sorry about that Anthony. Habitual for me to try any and everything to find a
workaround that works consistently.

Anyhow. Back to basics. Installed the Fiddlertool 2.0, enabled the HTTPS
decryption, and captured the session info.

This is what I had for the header information when I *attempt* to download
the XLS document from the server via the URL:

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 246272
Content-Type: application/vnd.ms-excel
Last-Modified: Mon, 07 Jan 2008 02:28:13 GMT
Accept-Ranges: bytes
ETag: "69d726f4d450c81:4fa"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Mon, 07 Jan 2008 02:43:41 GMT

The header information for the PDF document that downloads successfully from
the URL is:

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 22827
Content-Type: application/pdf
Last-Modified: Mon, 07 Jan 2008 02:16:04 GMT
Accept-Ranges: bytes
ETag: "4fa92341d350c81:4fa"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Mon, 07 Jan 2008 02:44:34 GMT

I've also tried setting the Cache-Control header on the server side to
public and max-age=86400, and even removing it completely, none of which had
any affect. This would seem to indicate that KB316431 (the part about having
no-cache set) is not applicable in this case.

I also changed the MIME-type so that XLS was "application/octet-stream" and
then "text/plain", but the same problem occurs for both, just the header
shows the different content-type.

Anything else I should try?
 >> Stay informed about: Cannot Download XLS Document Via HTTPS 
Back to top
Login to vote
Andrew Hayes

External


Since: Dec 27, 2007
Posts: 9



(Msg. 8) Posted: Sun Jan 06, 2008 8:03 pm
Post subject: Re: Cannot Download XLS Document Via HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sorry about that Anthony. Habitual for me to try any and everything to find a
workaround that works consistently.

Anyhow. Back to basics. Installed the Fiddlertool 2.0, enabled the HTTPS
decryption, and captured the session info.

This is what I had for the header information when I *attempt* to download
the XLS document from the server via the URL:

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 246272
Content-Type: application/vnd.ms-excel
Last-Modified: Mon, 07 Jan 2008 02:28:13 GMT
Accept-Ranges: bytes
ETag: "69d726f4d450c81:4fa"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Mon, 07 Jan 2008 02:43:41 GMT

The header information for the PDF document that downloads successfully from
the URL is:

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 22827
Content-Type: application/pdf
Last-Modified: Mon, 07 Jan 2008 02:16:04 GMT
Accept-Ranges: bytes
ETag: "4fa92341d350c81:4fa"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Mon, 07 Jan 2008 02:44:34 GMT

I've also tried setting the Cache-Control header on the server side to
public and max-age=86400, and even removing it completely, none of which had
any affect. This would seem to indicate that KB316431 (the part about having
no-cache set) is not applicable in this case.

I also changed the MIME-type so that XLS was "application/octet-stream" and
then "text/plain", but the same problem occurs for both, just the header
shows the different content-type.

Anything else I should try?
 >> Stay informed about: Cannot Download XLS Document Via HTTPS 
Back to top
Login to vote
Andrew Hayes

External


Since: Dec 27, 2007
Posts: 9



(Msg. 9) Posted: Sun Jan 06, 2008 8:10 pm
Post subject: Re: Cannot Download XLS Document Via HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sorry about that Anthony. Habitual for me to try any and everything to find a
workaround that works consistently.

Anyhow. Back to basics. Installed the Fiddlertool 2.0, enabled the HTTPS
decryption, and captured the session info.

This is what I had for the header information when I *attempt* to download
the XLS document from the server:

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 246272
Content-Type: application/vnd.ms-excel
Last-Modified: Mon, 07 Jan 2008 02:28:13 GMT
Accept-Ranges: bytes
ETag: "69d726f4d450c81:4fa"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Mon, 07 Jan 2008 02:43:41 GMT

The header information for the PDF document that downloads successfully is
almost identical:

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 22827
Content-Type: application/pdf
Last-Modified: Mon, 07 Jan 2008 02:16:04 GMT
Accept-Ranges: bytes
ETag: "4fa92341d350c81:4fa"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Mon, 07 Jan 2008 02:44:34 GMT

I tried changing Cache-Control to public, to expire after 1 day, and
removing it completely. I also tried changing the MIME-type for XLS to be
application/octet-stream and text/plain. None of these made any difference.

For fun, I changed the MIME-type to application/pdf. In this case, the file
downloaded but Acrobat complained that it doesn't start with %PDF-.
 >> Stay informed about: Cannot Download XLS Document Via HTTPS 
Back to top
Login to vote
David Wang

External


Since: Nov 14, 2007
Posts: 357



(Msg. 10) Posted: Mon Jan 07, 2008 12:31 am
Post subject: Re: Cannot Download XLS Document Via HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Can you use Fiddler tool to download the XLS over HTTPS from the
existing IIS5/W2K server which works and report the response headers
-- and see if they differ from the response headers of the XLS over
HTTPS returned from IIS6/WS03 which you say does not work.

Ultimately, this is a client-side issue because you'd see that IIS
faithfully sends the XLS data to the client in all cases, and you say
that the download works with Opera and Firefox.

To be clear, it's the client's arbitrary decision that you are trying
to influence with server's response, and if you make IIS6 send back
the same thing as IIS5, then it should work identically.

In other words, this issue really has nothing to do with WS03 -- the
server is not preventing download of XLS over HTTPS (because you'd see
the content being sent) -- it is the client that is rejecting the file
after the download.

If the above still doesn't work, then the problem is clearly outside
of IIS and we'd need to start looking elsewhere...


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//



On Dec 27 2007, 4:36 pm, Andrew Hayes
<AndrewHa....DeleteThis@discussions.microsoft.com> wrote:
> I've seen old threads and posts about this, but it's a problem that has
> recently cropped up with Win2K3 R2 SP2 and IE6 SP2, IE7.
>
> We have a secure web server that creates Excel documents of selected data
> then outputs the document as a page to the user, with this code:
>
>     FileStream fs = new FileStream( AbsDir + "\\" + FileName, FileMode.Open );
>     long fsize = fs.Length;
>     byte[] Buffer = new Byte[fsize];
>     fs.Read( Buffer, 0, (int)fsize );
>     fs.Close();
>
>     Response.ClearHeader();
>     Response.ClearContent();
>     Response.Clear();
>     Response.ContentType = "application/octet-stream-dummy";
>     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();
>
> Our existing server (2000 Advanced Server SP4) is working fine, but the new
> server (2003 64-bit Standard R2 SP2) doesn't. 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 an error. No download dialog
> is shown and no file is downloaded.
>
> What I am trying to avoid is having users mess about with their IE settings
> just to download Excel documents, especially since the above code works fine
> for PDF documents over HTTPS, and yes, the site they are accessing is in
> their IE Trusted Zone.
>
> I certainly can't have them make registry changes or check the "Do not save
> encrypted pages to disk" checkbox every time they use our site, and then
> uncheck it when they visit other sites. I'm talking about over 10,000 users
> here from over 100 companies.
>
> In the interest of bettering customer relations (which is why we're
> upgrading the servers), 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.
 >> Stay informed about: Cannot Download XLS Document Via HTTPS 
Back to top
Login to vote
Andrew Hayes

External


Since: Dec 27, 2007
Posts: 9



(Msg. 11) Posted: Mon Jan 07, 2008 1:52 am
Post subject: Re: Cannot Download XLS Document Via HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi David.

Can't do that I'm afraid, since our production server was changed to W2K3
(we no longer have a W2K server - which is why it's causing such a problem).
But yes, I understand it is viewed as a client issue, since it works fine
with IE6.0.2900 / FireFox / Opera but not IE7.0.5730.

All I'm trying to do is figure a way to get it to work with the latest IE
without requiring our users to jump through hoops. Since it downloads files
perfectly well over HTTP, why wouldn't it download them over HTTPS?

All of the KB articles concerning downloading XLS over HTTPS seem to imply
it's something to do with the cache, but as you can see, I've tried many
combinations of cache-control header values with no success.
 >> Stay informed about: Cannot Download XLS Document Via HTTPS 
Back to top
Login to vote
Anthony Jones

External


Since: Jan 28, 2006
Posts: 170



(Msg. 12) Posted: Tue Jan 08, 2008 10:17 am
Post subject: Re: Cannot Download XLS Document Via HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Andrew Hayes" <AndrewHayes.RemoveThis@discussions.microsoft.com> wrote in message
news:8B25295E-8159-4BF3-96FF-EDD8A1D61CBF@microsoft.com...
> Sorry about that Anthony. Habitual for me to try any and everything to
find a
> workaround that works consistently.
>
> Anyhow. Back to basics. Installed the Fiddlertool 2.0, enabled the HTTPS
> decryption, and captured the session info.
>
> This is what I had for the header information when I *attempt* to download
> the XLS document from the server via the URL:
>
> HTTP/1.1 200 OK
> Cache-Control: private
> Content-Length: 246272
> Content-Type: application/vnd.ms-excel
> Last-Modified: Mon, 07 Jan 2008 02:28:13 GMT
> Accept-Ranges: bytes
> ETag: "69d726f4d450c81:4fa"
> Server: Microsoft-IIS/6.0
> X-Powered-By: ASP.NET
> Date: Mon, 07 Jan 2008 02:43:41 GMT
>
> The header information for the PDF document that downloads successfully
from
> the URL is:
>
> HTTP/1.1 200 OK
> Cache-Control: private
> Content-Length: 22827
> Content-Type: application/pdf
> Last-Modified: Mon, 07 Jan 2008 02:16:04 GMT
> Accept-Ranges: bytes
> ETag: "4fa92341d350c81:4fa"
> Server: Microsoft-IIS/6.0
> X-Powered-By: ASP.NET
> Date: Mon, 07 Jan 2008 02:44:34 GMT
>
> I've also tried setting the Cache-Control header on the server side to
> public and max-age=86400, and even removing it completely, none of which
had
> any affect. This would seem to indicate that KB316431 (the part about
having
> no-cache set) is not applicable in this case.
>
> I also changed the MIME-type so that XLS was "application/octet-stream"
and
> then "text/plain", but the same problem occurs for both, just the header
> shows the different content-type.
>
> Anything else I should try?

In the advanced tab of IE7 internet options find the security section.
What is the state of the 'Do not save encrypted pages to disk' option?

--
Anthony Jones - MVP ASP/ASP.NET
 >> Stay informed about: Cannot Download XLS Document Via HTTPS 
Back to top
Login to vote
Andrew Hayes

External


Since: Dec 27, 2007
Posts: 9



(Msg. 13) Posted: Tue Jan 08, 2008 10:17 am
Post subject: Re: Cannot Download XLS Document Via HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> In the advanced tab of IE7 internet options find the security section.
> What is the state of the 'Do not save encrypted pages to disk' option?

Unchecked, which would imply that it saves encrypted pages to disk.
 >> Stay informed about: Cannot Download XLS Document Via HTTPS 
Back to top
Login to vote
Steve Manbear

External


Since: Apr 28, 2008
Posts: 1



(Msg. 14) Posted: Mon Apr 28, 2008 10:15 pm
Post subject: Re: Cannot Download XLS Document Via HTTPS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'm curious as to whether you ever found a solution for this problem.
I'm now experiencing the same phenomenon (though my server is Apache).
IE 7 does gives the same error message and refuses to download an Excel
file in HTTPS.



*** Sent via Developersdex http://www.developersdex.com ***
 >> Stay informed about: Cannot Download XLS Document Via HTTPS 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]