Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 316431 - Last Review: January 30, 2007 - Revision: 7.3
Internet Explorer is unable to open Office documents from an SSL Web site
This article was previously published under Q316431
When you attempt to open or download a Microsoft Office
document (.doc file, .xls file, .ppt file, and so on) from a secure Web site in
Internet Explorer, you may receive one of the following error messages, even
though the document is available and downloaded from the server:
Error message 1
Internet
Explorer cannot download file from
server.
Internet Explorer was not able to open this Internet site. The requested site
is either unavailable or cannot be found. Please try again later.
Error message 2
The
page cannot be displayed.
The page you are looking for is currently unavailable. The Web site might be
experiencing technical difficulties, or you may need to adjust your browser
settings.
Cannot find server or DNS Error
Error message 3
Office
Application Name cannot open the file.
Error message 4
Publisher cannot find the file you specified.
The
problem occurs if the server is using Secure Sockets Layer (SSL) and has added
one or both of the following HTTP headers to the response message:
Pragma: no-cache
Cache-control: no-cache,max-age=0,must-revalidate
In order for Internet Explorer to open documents in Office
(or any out-of-process, ActiveX document server), Internet Explorer must save
the file to the local cache directory and ask the associated application to
load the file by using
IPersistFile::Load. If the file is not stored to disk, this operation fails.
When Internet Explorer communicates with a secure Web site through
SSL, Internet Explorer enforces any
no-cache request. If the header or headers are present, Internet Explorer
does not cache the file. Consequently, Office cannot open the file.
Web sites that want to allow this type of operation should
remove the
no-cache header or headers.
This behavior is by design.
Files that are associated with Internet Explorer itself
(including .txt files, .html files, .gif files, .jpg files, .xml files, and so
on) do not generally have the problem. Files that are associated with
non-Office applications may or may not have the problem, depending on the
application.
Web developers should note that some firewalls and
security programs may add these headers automatically to all outbound HTTP
responses. Even if you have not configured your Web server, Internet Server
Application Programming Interface (ISAPI) extension, or Active Server Pages
(ASP) script to return these headers, your site may include them by default.
Check with your firewall or security administrator to determine if this is the
case, and discuss the security risks to your company if you choose to disable
this option to allow caching for these files.
Steps to reproduce the behavior
- In the Wwwroot folder for your IIS server, create a new ASP
file. Name the file Testnocache.asp, and then add the following code to the
file:
<%
Response.ContentType = "application/msword"
Response.AddHeader "Cache-control", "no-cache"
%>
<HTML><BODY>Test File Loaded in Microsoft Word</BODY></HTML>
- Configure your IIS server to use SSL.
- On a client system that has Word installed, browse to the
ASP file using HTTPS, as follows:
https://[servername]/testnocache.asp
You may be prompted to open or save the file on some systems.
Regardless of which option you choose (or if you are not prompted to open or
save the file), you receive an error message and are unable to open or save the
file. - Remove the AddHeader line from the ASP file, and then browse to the URL from the
client. The document opens in Word.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
248107Â
(http://kbalertz.com/Feedback.aspx?kbNumber=248107/
)
Creating server certificates using Certificate Services Web forms
APPLIES TO
- Microsoft Internet Explorer 6.0, when used with:
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Datacenter Server
- Microsoft Windows 2000 Professional Edition
- Microsoft Windows 2000 Server
- Microsoft Internet Explorer 5.5
- Microsoft Internet Explorer 5.01
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please