Announcing the Release of ASP.NET MVC 5.1, ASP.NET Web API 2.1 and ASP.NET Web Pages 3.1

Announcing the Release of ASP.NET MVC 5.1, ASP.NET Web API 2.1 and ASP.NET Web Pages 3.1

Rate This
  • Comments 39

The NuGet packages for ASP.NET MVC 5.1, ASP.NET Web API 2.1 and ASP.NET Web Pages 3.1 are now live on the NuGet gallery!

Download this release

You can install or update to the released NuGet packages for ASP.NET MVC 5.1, ASP.NET Web API 2.1 and ASP.NET Web Pages 3.1 using the NuGet Package Manager Console, like this:

  • Install-Package Microsoft.AspNet.Mvc -Version 5.1.0
  • Install-Package Microsoft.AspNet.WebApi -Version 5.1.0
  • Install-Package Microsoft.AspNet.WebPages -Version 3.1.0

Pre-requisites for this release

What’s in this release?

This release is packed with great new features summarized below:

ASP.NET MVC 5.1

ASP.NET Web API 2.1

ASP.NET Web Pages 3.1

You can find a complete listing of the features and fixes included in this release by referring to the corresponding release notes:

Documentation

Tutorials and other information about this release are available from the ASP.NET web site (http://www.asp.net).

Questions and feedback

You can submit related to this release on the ASP.NET forums (MVC, Web API, Web Pages). Please submit any issues you encounter and feature suggestions for future releases on our CodePlex site.

Thanks and enjoy!

Leave a Comment
  • Please add 5 and 7 and type the answer here:
  • Post
  • I have played with it and its great.Thanks for sharing info.

    Regards,

    Japesh

    http://www.dotnetjalps.com

  • There is a (non-Microsoft) NuGet package that allows upgrading the Mvc3 to Mvc4.

    There is a (Microsoft) article that explains how to manually migrate from Mvc3 to Mvc4. We can read from that article, by ex:

    Locate the ProjectTypeGuids element and replace {E53F8FEA-EAE0-44A6-8774-FFD645390401} with {E3E379DF-F4C6-4180-9B81-6769533ABE47}.

    Now, is there something similar that allows migrating from MVC3 to MVC5?

    Is there sufficient to migrate first from 3 to 4, and then re-target the framework version (to 4.5) and install the official MVC nu-get?

  • @serhio, please check the following to see how to migrate MVC4 to MVC5, it's all manual.  So you've to migrate from 3 to 4 first, then 4 to 5.

    www.asp.net/.../how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2

  • plz help me out on how to create database connection in MVC through N hibernet

  • Shouldn't the install command for Web API be

    •Install-Package Microsoft.AspNet.WebApi -Version 2.1.0

    ?

  • For historical reasons the version of the Web API 2.1 package is actually 5.1.

  • Hi,

    I got the error in step 6 while creating the controller from Movies Tutorial as : "There was an error running the selected code generator: 'Value cannot be null. Parameter name: dbContextType'".  

                www.asp.net/.../accessing-your-models-data-from-a-controller

    I struggled almost 3 days, finally I found solution my self as follows:

    Solution:  class MovieDBContext should be written outside the Movie class (models class) instead of instead of inside Movie class.

    Problematic code:

    namespace MvcMovie1.Models

    {

       public class Movie

       {

           public int ID { get; set; }

           public string Title { get; set; }

           public DateTime ReleaseDate { get; set; }

           public string Genre { get; set; }

           public decimal Price { get; set; }

     public class MovieDBContext : DbContext  //Wrong...Should declare outside Movie class...

       {

           public DbSet<Movie> Movies { get; set; }

       }

       }

     }

    Correct Code:

    namespace MvcMovie1.Models

    {

       public class Movie

       {

           public int ID { get; set; }

           public string Title { get; set; }

           public DateTime ReleaseDate { get; set; }

           public string Genre { get; set; }

           public decimal Price { get; set; }

       }

       public class MovieDBContext : DbContext

       {

           public DbSet<Movie> Movies { get; set; }

       }

    }

    works fine with this code :-)

  • @Ramesh Babu Kotha,

    If you look at part5 and part6 of the tutorial, the classes are specified correctly.  So, seems that you copied and pasted to a wrong position when following the tutorial.

  • I like This blog at the security reason.

Page 3 of 3 (39 items) 123