Internet Explorer shows error when downloading excel file in SSL site
Posted
by Billy
on Stack Overflow
See other posts from Stack Overflow
or by Billy
Published on 2010-03-08T03:55:09Z
Indexed on
2010/03/08
4:21 UTC
Read the original article
Hit count: 442
ASP.NET
I get the following error when downloading excel file in SSL site:
Internet Explorer cannot download xxxx.aspx from mysite.com.
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
After googling, I suspect that it's the problem of the response header.
I try the solution in this page and set the header:
http://trac.edgewall.org/ticket/1020
HttpContext.Current.Response.AddHeader("Pragma", "no-cache");
HttpContext.Current.Response.CacheControl = "private";
But it doesn't work. Any suggestions?
© Stack Overflow or respective owner