ASP.NET MVC 1

Wednesday, November 6, 2013

Model View Conroller

Deploy Apps in the Cloud, Windows Azure

ASP.NET MVC Rocks!!!

What's new:

  1. Owin and Katana
  2. Identity and Membership
  3. Bootstrap 3
  4. Web API 2
  5. Entity Framework 6
  6. SignalR
  7. Visual Studio 2013

Upgrading from 4 to 5

  • Check installed nuget packages in package.config, see that version 4 of mvc targeting .net framework 4


Update version of .net framework to target 4.5.1


Update Nuget Packages at the solution level, either update all or update packages one by one


Updated packages.config: MVC/API goto 5, Razor/WebPages goto 3, EF goes to 6


In web.config webpages go to version 3

mvc goes to version 5


In web.config in views folder, razor goes to 3 and mvc reference goes to 5

In pages section change mvc references to version 5


Unload project, edit the csproj file and remove this guid specific to mvc in prior versions


Build succeeds


Hit control+f5 and now the project is running with ASP.NET MVC 5 on .NET Framework 4.5.1


Add new scaffolded item and get new scaffolding interface in visual studio 2013


Create an asp.net web application


Select mvc template


In references folder see new owin references



Create new console application project named Katana which will listen for and process http requests


Install package microsoft.owin.hosting


Create this web server console


f5 to start the server, open a browser at port 8080 and first Katana application running


Install this package


Add this line of code to configuration method


Run the web server and view owin welcome screen

Default Success Warning Important Info Inverse
B S W I ? O