Microsoft Knowledge Base Email Alertz

KBAlertz.com: (316431) - 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...

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 2.0 Web Hosting with SQL 2005: Click Here!
Discount ASP.NET Hosting


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Internet Explorer is unable to open Office documents from an SSL Web site

Article ID:316431
Last Review:January 30, 2007
Revision:7.2
This article was previously published under Q316431
On This Page

SYMPTOMS

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
				

Back to the top

CAUSE

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.

Back to the top

RESOLUTION

Web sites that want to allow this type of operation should remove the no-cache header or headers.

Back to the top

STATUS

This behavior is by design.

Back to the top

MORE INFORMATION

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.

Back to the top

Steps to reproduce the behavior

1.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>
					
2.Configure your IIS server to use SSL.
3.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.
4.Remove the AddHeader line from the ASP file, and then browse to the URL from the client. The document opens in Word.

Back to the top

REFERENCES

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

Back to the top


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

Back to the top

Keywords: 
kbprb KB316431

Back to the top

       

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

Anonymous User Report As Irrelevant  
Written: 9/17/2004 2:45 PM
This is very useful, although in my case it seems to apply to downloading files of any type, not just Office Documents.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please