What happens my asp.net mvc Project is using mvc 5 and mvc 5 is not installed on the server?
Does it take the closest one, if 4 is installed it takes that insead?
What happens my asp.net mvc Project is using mvc 5 and mvc 5 is not installed on the server?
Does it take the closest one, if 4 is installed it takes that insead?
Install MVC 5 via Nuget. That gives you the binaries and puts a reference in your project. Then when you deploy your application everything needed will be included, and there is no need to install anything on the server.
No it doesn't take the closest one, unless you have a binding redirect, and this only works for lower versions not higher ones. You will need to reference mvc 5 in your project or put the assemblies in the GAC on the server.