GithubHelp home page GithubHelp logo

Unable to find type [System.IO.Compression.ZipFile] on running `kvm install 0.1-alpha-build-0421` gives error on windows 7 about aspnetcore HOT 10 CLOSED

schatekar avatar schatekar commented on May 4, 2024
Unable to find type [System.IO.Compression.ZipFile] on running `kvm install 0.1-alpha-build-0421` gives error on windows 7

from aspnetcore.

Comments (10)

TomFromThePool avatar TomFromThePool commented on May 4, 2024

Getting the same error here.

from aspnetcore.

rafasoares avatar rafasoares commented on May 4, 2024

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...

from aspnetcore.

rafasoares avatar rafasoares commented on May 4, 2024

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.

from aspnetcore.

glennc avatar glennc commented on May 4, 2024

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.

from aspnetcore.

glennc avatar glennc commented on May 4, 2024

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

from aspnetcore.

rafasoares avatar rafasoares commented on May 4, 2024

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.

from aspnetcore.

glennc avatar glennc commented on May 4, 2024

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?

from aspnetcore.

xplicit avatar xplicit commented on May 4, 2024

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.

from aspnetcore.

Eilon avatar Eilon commented on May 4, 2024

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

from aspnetcore.

xplicit avatar xplicit commented on May 4, 2024

@Eilon added #61

from aspnetcore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.