5

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

tereško
  • 58,060
  • 25
  • 98
  • 150
b24
  • 2,425
  • 6
  • 30
  • 51
  • 1
    possible duplicate of [Can I run MVC 5 application on .NET Framework 4.0?](http://stackoverflow.com/questions/20385785/can-i-run-mvc-5-application-on-net-framework-4-0) – Joe Doyle Dec 05 '13 at 21:25
  • I saw that before post my question. That question was about Razor version but my question was about .net framework version. – b24 Dec 09 '13 at 08:22

2 Answers2

10

Short Answer: No, you need .NET 4.5

Only if you add the dependencies:

  • Razor v3.0+
  • ASP.NET WebPages v3.0+
JC Lizard
  • 1,050
  • 6
  • 17
4

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)

Dunken
  • 8,481
  • 7
  • 54
  • 87