# Wednesday, 23 July 2014

I just came across a good looking overview of the ASP.NET MVC 5 application lifecycle. I thought I’d share it so here you go.

Grz, Kris.

Wednesday, 23 July 2014 14:46:37 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Tuesday, 04 March 2014

On a regular basis Microsoft brings out cool and easy to follow tutorials. I just noticed that the ones about Entity Framework and ASP.NET MVC got updated.

For Entity Framework the following new things in version 6 are handled:

  • Connection resiliency
  • Command interception
  • Code-based configuration
  • Async
  • Stored procedures

9 tutorials were refurbished:

And 3 new tutorials were created:

For people who’re still on older versions don’t despair, they’re still available under http://www.asp.net/mvc/tutorials/getting-started-with-ef-5-using-mvc-4

Grz, Kris.

Tuesday, 04 March 2014 12:08:00 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, 20 January 2014

Recently we upgraded to Visual Studio 2013 at my client. This morning my colleague came over and had a small problem. Some of the .svc services gave 404 errors. As I had another solution open of which I knew the in project .svc services simply worked I sat down with him. Some searching on the internet, trying out http activation, reregistering WCF, … it didn’t work out.

The difference between both solutions was that the one I was looking at was Webforms while the other one was MVC4 based. Aha! I used Nuget to include routedebugger. A super handy package for, well, debugging MVC routes. However since the .svc files themselves were put into a /Services subfolder I had to make it up like this:


Put this at pretty much of the top of all the route configuration so that it gets picked up early.

The funny part was that the .svc was working pretty fine, even the wsdl could get obtained. However when we wanted to make a REST call to a specific method it gave 404 mistakes. Turned out to be that the default {controller}/{action}/{id} that ships with every template caught it. Making a more specific rule near the top of the configuration dealt with it and it all started out working smoothly again.

After testing it locally with IIS Express we also tested it out on Cassini due to the fact that the servers are still not up to IIS 8 at the moment and that also worked out fine.

Grz, Kris.  

Monday, 20 January 2014 18:52:16 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Sunday, 06 March 2011

A couple of weeks ago I found a new shiny book in my mailbox: ASP.NET MVC2 Cookbook by Andrew Siemer and Richard Kimber. Due to a very busy schedule at work and the 2011 MVP summit in Seattle it took me a bit of time to go through it completely.



First of all, I like the cookbook approach that Packt’s been using for some time now. These books show off small examples that are reusable in most occasions of day to day development. This book is for sure no exclusion on that part so I liked it. The benefit of having short, spread over several pages, recipes is that you can simply read it when needed or go through them if you don’t have much time in a one by one fashion.

The book itself is clearly written and divided in several chapters which not only covers MVC but also topics like data storage. What I found to be great is that it also introduces tools like Automapper, NBuilder, MvcContrib, MvcSitemap, … and also makes the reader used to things like Dependency injection (by making use of Structuremap) and for example the PRG pattern (Post/Redirect/Get), Hijaxing (also called progressive enhancement or graceful degradation).

Are there downsides on this book? Well, yes. First of all it’s not for people who just want to start with ASP.NET MVC. Some being used to the technology basics will surely help to grasp this book. I would suggest making Nerddinner or MVC Music Store, both free tutorials with guiding eBook, is a must. Second is the fact that it was published a month too soon. Why? Just before this book got released Microsoft unleashed ASP.NET MVC 3 to the world. It would’ve been great if some recipes would’ve included some MVC 3 juice too. Not everyone’s using MVC 3 yet so it is great to have all things working in MVC 2 too but for the future readiness of the book it would’ve been just on spot.

Grz, Kris.

Books | MVC | Review
Sunday, 06 March 2011 14:27:55 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, 19 April 2010
This article shows how to use ajax to load a partial view into a view and afterwards the form data can be retrieved from that dynamically added control.
Ajax | jQuery | MVC | PartialView
Monday, 19 April 2010 20:24:15 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Thursday, 08 April 2010

Yesterday I had the pleasure to deliver my first international presentation in Lebanon. The talk was about ASP.NET MVC 2 which got recently released topped with some jQuery. Since I knew that most people didn’t have hands on experience with MVC I made a more entry level presentation, explaining why it was introduced by Microsoft and what it was. Then I used several demos especially crafted to demonstrate some of the handy and powerful additions like data annotations and the interaction with jQuery validation, templated helpers, partial views, using a JsonResult together with jQuery to fill up html elements dynamically, …

For me it was a great experience and I got several felicitations from the spectators. I myself would like to thank Bilal Haidar for getting me into contact with the Lebdev user group and Samer Chidiac from Microsoft Lebanon for organizing this event at Berytech.

The slidedeck that I used can already be found on slideshare:

Grz, Kris.

Thursday, 08 April 2010 13:26:00 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [3]  | 
# Wednesday, 18 March 2009

Noticed it a couple of hours ago on the forums that someone was able to download the bits and just noticed that the download link itself was available: http://www.microsoft.com/downloads/details.aspx?FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b&displaylang=en.

ASP.NET MVC 1.0 provides a new Model-View-Controller (MVC) framework on top of the existing ASP.NET 3.5 runtime. This means that developers can take advantage of the MVC design patterns to create their Web Applications which includes the ability to achieve and maintain a clear separation of concerns (the UI or view from the business and application logic and backend data), as well as facilitate test driven development (TDD). The ASP.NET MVC framework defines a specific pattern to the Web Application folder structure and provides a controller base-class to handle and process requests for “actions”. Developers can take advantage of the specific Visual Studio 2008 MVC templates within this release to create their Web applications, which includes the ability to select a specific Unit Test structure to accompany their Web Application development.
The MVC framework is fully extensible at all points, allowing developers to create sophisticated structures that meet their needs, including for example Dependency Injection (DI) techniques, new view rendering engines or specialized controllers.
As the ASP.NET MVC framework is built on ASP.NET 3.5, developers can take advantage of many existing ASP.NET 3.5 features, such as localization, authorization, Profile etc.n

Time to read the free eBook from Scottgu: http://weblogs.asp.net/scottgu/archive/2009/03/10/free-asp-net-mvc-ebook-tutorial.aspx.

Grz, Kris.

Wednesday, 18 March 2009 12:02:18 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Wednesday, 05 March 2008

It's MIX and that always means great stuff coming to web developers. This year it's the ASP.NET MVC Preview 2 and Silverlight 2. Great times are ahead of us.

Grz, Kris.

Wednesday, 05 March 2008 20:31:17 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, 10 December 2007

Ok, it seems this year has been the year of new technologies from Microsoft and yet new stuff's coming out. I found this blog post from Julie Lerman that had a talk with Scott Guthrie on how to handle everything that comes out of the firehose: ScottGu on how to deal with the Microsoft firehose.

Grz, Kris.

Microsoft | MSDN | MVC
Monday, 10 December 2007 20:01:22 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |