try-catch-FAIL

Failure is inevitable

NAVIGATION - SEARCH

Using HttpContext Safely After Async in ASP.NET MVC Applications

Another day, another Entity Framework (and ASP.NET MVC 5) async problem, and another solution for you!  Actually, today I have two solutions for you!  This time, I ran into a problem with HttpContext's Items collection losing my IoC container when execution resumed after an await.  The fix is simple once you understand what's going on. More...

Painless Workstation Setup with Boxstarter

I recently used Boxstarter to set my development machine back up after a format.  Boxstarter is a game-changer for Windows.  I create a simple Powershell script, ran a simple command, then walked away as my machine spent the next several hours downloading, installing, and rebooting, all without me lifting another finger.  When the dust settled, I had a Windows 8.1 machine with my tools and utilities installed, updated, and ready to rock. More...

A Better Way to Configure AutoMapper for ASP.NET MVC (Video)

AutoMapper is one of the essential tools in my ASP.NET MVC toolbelt.  I use it on every MVC project I do.  It's saved me countless lines of code over the years.  And yet, there's always been one thing that bugged me about it: it violates the idea of "common closure."  I've built a better way to handle this, but as my friends have accused reminded me, I might have forgotten to share this approach publicly.  Until now. More...

SpecsFor and SpecsFor.Mvc Roadmap

Today, I took the first steps in laying out a roadmap for future work on both SpecsFor and SpecsFor.Mvc.  More...

Making TransactionScope Work with async/await in .NET 4.5

I ran into a frustrating little problem today.  I'm getting started with Entity Framework 6 and its async features on a new project, and my SpecsFor integration tests were bombing out unexpectedly.  In turns out the problem was caused by TransactionScope and async work together out of the box.  Or rather, how they don't work together. More...