In this article I am going to explain about DNVM upgrade, uninstall DNVM, re-install DNVM, resolving the DNVM multiple version upgrade issue with user name having space.
ASP.NET 5 is not yet released officially and the latest version of ASP.NET 5 is RC1. To create, build, run & host ASP.NET 5 application we need DNVM, DNX and DNU.
Issue with DNVM Upgrade

While running “dnvm upgrade” command it was saying that “Access to the path ~\.dnx\runtime\temp\” is denied.
I tried a lot to change the property of ‘~\.dnx\runtime\temp\’ folder but I was not able to do that because while it downloads latest version of dnx it was storing it in same folder and when download completed within 1-2 seconds it was displaying the message “Access to the path ~\.dnx\runtime\temp\”. In short of of time I cannot change the property of that folder.
The 2nd issue which is coming is ‘C:\Users\DeLL ’ is not recognized as an internal or external command, operable program or batch file. The system cannot find the path specified.
While searching for this issue I found a lot of threads in which it was mentioned that this issue is occurring because of space in username and it is a known bug which has not been resolved yet. I tried a lot but issue not resolved.
I was running any command of DNVM it was displaying the same error message. In the following screenshot I ran command “dnvm list” and get the same exception,
‘C:\Users\DeLL ’ is not recognized as an internal or external command, operable program or batch file. The system cannot find the path specified.

Resolving DNVM upgrade Issue
I am using old version of dnx runtime which is not being upgraded to latest version. To resolve this issue I have done the following things,
Remove all the DNX folders.
Run the following command,
- where dnvm
Now run,
- DNVM upgrade
- @powershell - NoProfile - ExecutionPolicy unrestricted - Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"
Once this step is complete you should be able to run dnvm and see some help text.
Install the .NET Execution Environment (DNX)
The .NET Execution Environment (DNX) is used to build and run .NET projects. Use DNVM to install DNX for the full .NET Framework or for .NET Core.
To install DNX for .NET Core:
Use DNVM to install DNX for .NET Core:
- dnvm upgrade -r coreclr.
To install DNX for the full .NET Framework:
Use DNVM to install DNX for the full .NET Framework:
- dnvm upgrade -r clr.
After that I ran the command dnvm list to see the list of installed dnx runtime versions.

Then run the command
- dnvm upgrade –r clr –arch x86
They are “dnx-coreclr-win-x64.1.0.0-rc1-update1” & “dnx-clr-win-x86.1.0.0-rc1-update1”.

Run
- dnvm upgrade -r clr -arch x64

If it fails then run the following command,
- dnvm install 1.0.0-rc1-update1


The last install is set as default.
Changing DNX Version
To change the DNX runtime Version use the following command,
- dnvm use <DNX Version> -r <Runtime> -arch <Architecture>
- e.g. dnvm use 1.0.0-rc1-update1 -r coreclr -arch x64
and to see the current version use,
- dnx --version

But this is not persistent it will apply to the current session only if you want to make your changes persistent then use the following command,
- dnvm use 1.0.0-rc1-update1 -r coreclr -arch x64 -p.

Banketeshvar NarayanPosted Mar 26, 2016, 10:27 AM
Thanks to all the readers for giving your precious time to read this article & thanks once again for your valuable comments.
Suman VermaPosted Feb 23, 2016, 7:46 AM
Thanks for sharing
Banketeshvar NarayanPosted Dec 28, 2015, 1:59 PM
Thanks Santhakumar Munuswamy
Santhakumar MunuswamyPosted Dec 28, 2015, 1:24 PM
Thanks for nice article.