Skip to content

Unable to find type [System.IO.Compression.ZipFile] on running kvm install 0.1-alpha-build-0421 gives error on windows 7 #20

Closed

Description

@schatekar

When I run

kvm install 0.1-alpha-build-0421 or kvm upgeade

I get following error on a windows 7 box.

Unable to find type [System.IO.Compression.ZipFile]: make sure that the assembly containing this type is loaded.

Activity

  1. HalliHax commented on May 14, 2014

    @HalliHax

    Getting the same error here.

  2. rafasoares commented on May 14, 2014

    @rafasoares

    I've run into the same problem, you need to install Powershell 4 from here:
    http://www.microsoft.com/en-us/download/details.aspx?id=40855

    You'll want Windows6.1-KB2819745-x64-MultiPkg.msu or Windows6.1-KB2819745-x86-MultiPkg.msu depending on your system.

    Now the issue I'm having is this one:

    > kvm install 0.1-alpha-build-0421
    KRE-svr50-x86.0.1-alpha-build-0421 already installed.
    Cannot find KRE-svr50-x86.0.1-alpha-build-0421, do you need to run 'kvm install
    0.1-alpha-build-0421'?
    

    And kvm list returns nothing...

  3. rafasoares commented on May 14, 2014

    @rafasoares

    And solving my own issue (if any of you run into it as well):

    Go to C:\Users\[USERNAME]\.kre\packages and delete the existing packages.

  4. glennc commented on May 16, 2014

    @glennc
    Contributor

    Just an extra point of information on this. The error you are getting is because of needing a new version PowerShell, as was said.

    The reason is that the KVM script uses the type listed, which was added in .NET 4.5. But the version of PowerShell installed by default on Windows 7 and Windows Server 2008 uses an older version of .NET and so doesn't know about the type.

    But there are also other restrictions. For the moment Core CLR will not work on Windows 7. If you try to use -svrc50 it will fail.

  5. glennc commented on May 20, 2014

    @glennc
    Contributor

    We've documented minimum PowerShell version. I don't think we will try to re-write the script to not take the dependency.

  6. rafasoares commented on May 20, 2014

    @rafasoares

    But I think the script should perform a cleanup if it encounters an error. Or at least add a -reinstall or -force flag in case we are trying to install a versions that supposedly is already installed.

  7. glennc commented on May 21, 2014

    @glennc
    Contributor

    Sure, the error handling around that could be better. But that isn't part of this issue. Can you create a new issue about handling already installed versions in the KRuntime repo?

  8. xplicit commented on Jun 1, 2014

    @xplicit

    Please add .NET and powershell version checking into the script. If it said "you have to install powershell v4.0" at the start it would save the time spent to understanding what is reason for "ZipFile not found" issue.

  9. Eilon commented on Jun 2, 2014

    @Eilon
    Contributor

    @xplicit can you log a new issue for that? This particular issue is closed.

  10. xplicit commented on Jun 2, 2014

    @xplicit

    @Eilon added #61

  11. added a commit that references this issue on Oct 17, 2018
  12. added a commit that references this issue on Nov 20, 2018
    7119815
  13. added 2 commits that reference this issue on Nov 20, 2018
  14. ghost locked as resolved and limited conversation to collaborators on Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions