Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 841120 - Last Review: May 15, 2007 - Revision: 3.2
Error message after you download a .ZIP file from a document library in Windows SharePoint Services: "Cannot open file"
After 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.
This 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.
To 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.
Microsoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section.
APPLIES TO
- Microsoft Windows SharePoint Services 3.0
- Microsoft Windows SharePoint Services 2.0
- Microsoft Office SharePoint Server 2007
- Microsoft Office SharePoint Portal Server 2003
| kbopenfile kbtshoot kbprb kbhttp kbwebservices kbwebserver kbclientserver kbclient kberrmsg kbinterop kbnofix KB841120 |
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