You receive a "Cannot open file" error message after you download a .ZIP file from a document library in Windows SharePoint Services (841120)
The information in this article applies to:
- Microsoft Windows SharePoint Services
- Microsoft Office SharePoint Portal Server 2003
SYMPTOMSAfter you download a .ZIP file from a Microsoft Windows
SharePoint Services document library, and then you try to open the .ZIP file,
you may receive the following error message: Cannot open
file: it does not appear to be a valid archive. If you downloaded this file,
try downloading the file again. CAUSEThis problem may occur if HTTP compression is turned on in
the Web Sites properties of Microsoft Internet Information Services (IIS) on
the SharePoint virtual server. When you download a .ZIP file, IIS encodes the
file as GZIP. However, the browser client passes the file directly to the unZIP
program, without GZIP decoding the file. To determine if HTTP
compression is turned on, follow these steps:
- Click Start, point to
Administrative Tools, and then click Internet
Information Services (IIS) Manager.
- Expand the server (local
computer) tree, where server (local
computer) is the name of your IIS server.
- Right-click Web Sites, and then click
Properties.
- Click the Service tab to view the HTTP
compression properties.
WORKAROUNDTo work around this problem, change the MIME type for the
.ZIP file from application/x-zip-compressed to application/octet-stream. To change the MIME type, follow these steps:
- Click Start, point to
Administrative Tools, and then click Internet
Information Services (IIS) Manager.
- Right-click the server (local
computer) tree, where server (local
computer) is the name of your IIS server, and then click
Properties.
- Click MIME Types.
- Scroll down the registered MIME type list to find the .zip
entry.
- Click the .zip
application/x-zip-compressed entry, and then click
Edit.
- Change the MIME type value to
application/octet-stream.
- Stop and then restart the IIS Admin
Service to apply the change to the MIME type.
STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section.
Modification Type: | Minor | Last Reviewed: | 9/8/2004 |
---|
Keywords: | kbopenfile kbtshoot kbprb kbhttp kbWebServices kbWebServer KbClientServer kbClient kberrmsg kbinterop kbnofix KB841120 kbAudITPRO |
---|
|