You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to find type [System.IO.Compression.ZipFile] on running kvm install 0.1-alpha-build-0421 gives error on windows 7 #20
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'?
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.
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.
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?
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.
Activity
HalliHax commentedon May 14, 2014
Getting the same error here.
rafasoares commentedon May 14, 2014
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:
And
kvm listreturns nothing...rafasoares commentedon May 14, 2014
And solving my own issue (if any of you run into it as well):
Go to
C:\Users\[USERNAME]\.kre\packagesand delete the existing packages.glennc commentedon May 16, 2014
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.
glennc commentedon May 20, 2014
We've documented minimum PowerShell version. I don't think we will try to re-write the script to not take the dependency.
rafasoares commentedon May 20, 2014
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.
glennc commentedon May 21, 2014
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?
xplicit commentedon Jun 1, 2014
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.
Eilon commentedon Jun 2, 2014
@xplicit can you log a new issue for that? This particular issue is closed.
xplicit commentedon Jun 2, 2014
@Eilon added #61
#20 - Validate OpCodes.
Added OnBeforeStartExternalProcess callback which to NodeServicesOpti…
#20 - Port Map and MapWhen. Move Run.
#20 - Add Use extension for inline middleware.