Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC 5 And Web API 2 .NET requirement

My host provider only supports .NET 4. Is it possible to run MVC 5 and Web API 2 in .NET 4 machine?

like image 824
b24 Avatar asked Dec 05 '13 21:12

b24


2 Answers

Short Answer: No, you need .NET 4.5

Only if you add the dependencies:

  • Razor v3.0+
  • ASP.NET WebPages v3.0+
like image 123
JC Lizard Avatar answered Oct 09 '22 22:10

JC Lizard


No, ASP.NET Web API 2 requires .NET 4.5: http://forums.asp.net/t/1937143.aspx?Is+ASP+NET+MVC+5+and+Web+API+2+0+supported+on+NET+4+0+and+IIS6+ (scroll at the very bottom)

like image 45
Dunken Avatar answered Oct 09 '22 21:10

Dunken