1

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?

MikeAlike234
  • 759
  • 2
  • 12
  • 29

2 Answers2

1

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.

MEMark
  • 1,493
  • 2
  • 22
  • 32
0

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.

Dan
  • 29,100
  • 43
  • 148
  • 207