In 2016,. NET will have a lot of big updates for ASP 5
Before that I was developing with the old. NET (WebForm + IIS)
In order to deal with the new features of. NET, I have specifically studied the basic MVC Owin and so on.
Next I will write some study notes on the subject.
MVC & Owin Setup Step
1.New empty project and add folders and code references for "MVC".
2.Install "Microsoft.Owin.Host.SystemWeb" (this was for Host in IIS)
3.Remove Global.asax and App_start
4.Add a Startup.cs file with below code
usingSYSTEM.WEB.MVC;usingSystem.Web.Routing;usingMicrosoft.owin;usingOwin; [Assembly:owinstartupattribute (typeof(test. Startup)]namespacetest{ Public classMvcrouteconfig { Public Static voidregisterroutes (routecollection routes) {routes. Ignoreroute ("{Resource}.axd/{*pathinfo}"); Routes. Mapmvcattributeroutes (); } } Public Partial classStartup { Public voidConfiguration (Iappbuilder app) {arearegistration.registerallareas (); Mvcrouteconfig.registerroutes (routetable.routes); } }}
View Code
Visual Studio Owin+mvc+webapi+odatav4+identity+oauth2.0+angularjs 1.x Learning Notes