22 April, 2009

Cannot open file: it does not appear to be a valid archive. If you downloaded this file, try downloading the file again.

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.

CAUSE
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:
1. Click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
2. Expand the server (local computer) tree, where server (local computer) is the name of your IIS server.
3. Right-click Web Sites, and then click Properties.
4. Click the Service tab to view the HTTP compression properties.

Resolution:

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:

1. Click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
2. Right-click the server (local computer) tree, where server (local computer) is the name of your IIS server, and then click Properties.
3. Click MIME Types.
4. Scroll down the registered MIME type list to find the .zip entry.
5. Click the .zip application/x-zip-compressed entry, and then click Edit.
6. Change the MIME type value to application/octet-stream .
7. Stop and then restart the IIS Admin Service to apply the change to the MIME type.

4 comments:

  1. Is this still a valid fix for SharePoint 2010? Is there any negative impact to IIS security associated with this for internet-facing web sites?

    ReplyDelete
  2. Yes-its still valid and no impact as i have tested this without any problems

    ReplyDelete
  3. Nice, even content miss means no use in downloading

    ReplyDelete
  4. Notre générateur de kamas est enfin disponible gratuitement en téléchargement.


    Depêchez-vous il n'est disponible qu'en petite quantité limitée.

    Notre générateur de kamas est garantie de non-bannissement
    avec beaucoups de possibilité intégrée vous garantissant une sécurité parfaite.


    Il est important de comprendre que notre programme n'est pas difficile d'accès et vous permet une utilisation sereine en toutes circonstances
    En plus vous allez pouvoir générer des kamas très facilement mais en plus
    vous êtes sur
    d'être en toutes sécurité grâce à notre façon de programmation difficile utilisant des techniques utilisés par les plus
    intelligents du moment.

    ReplyDelete

Your feedback is always appreciated. I will try to reply to your queries as soon as possible- Amol Ghuge

Note: Only a member of this blog may post a comment.