News Blog - Browsing Asp.Net
-
Update to ASP.NET MVC RC1
I've checked in the code to update BlogSvc to ASP.NET MVC RC1 Refresh. There were only minor updates to get things workings and the overall process only took around 10 minutes. However, the readme notes on the configuration are misleading. The release notes tell you to update the pages section to look like:
<pages
validateRequest="false"
pageParserFilterType = " System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35 "
pageBaseType = " System.Web.Mvc.ViewPage, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35 "
userControlBaseType = " System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35 " >
This is not necessaryas you'll notice when creating a new MVC project that three bolded lines are not included. When I added the lines to my config it caused errors on my hosting provider.Update: yes, the readme notes are very misleading. These lines should actually be added to the web.config file in the "Views" directory. I added these lines to web.config file in the themes folder.
-
Now on ASP.NET MVC Preview 5
I'm proud to announce the next release is built on MVC. The move to MVC has many benefits for BlogService:
- No more WCF issues
- Testable
- Simplified authentication
- VS.net development server support
- Better flexibility around themes
- Url rewriting no longer required
- Better ajax scenarios
- Cleaner deployment structure (see right)
- Less configuration required
This website is already running on MVC and it appears overall speed has increased both on the browser and through Windows Live Writer (even on the new beta).
If you like to discuss the change to MVC, please head on over to the discussion already in progress.