mvc4

AngularJS and TypeScript

Lately, I’ve started using AngularJS instead of Knockout. Knockout.js is very popular in the .NET world, is very easy to use, and meshes well with .NET devs used to the MVVM style of development. I highly recommend it. But, yeah, it’s fair to say that I’m…

The Azure Tech Behind MomCharts

Last week, my company published the public preview of MomCharts.com, our baby tracking software in the cloud. One of the design goals for the software was make sure it was cross-platform, cross-device, and as maintenance free as possible. My company (Heavy Code) is a member of the BizSpark program…

TypeScript not Rebuilding JavaScript File

UPDATE: While the solution I presented is fine for builds, what you really want is for the JavaScript file to be regenerated when you save the TypeScript file. The current TypeScript plug-in doesn't do this. Lucky for us, Mads Kristensen has updated the Web Essentials 2012 plug-in to support TypeScript.…

Force Web API to Fail with ActionFilter

Sometimes, what you really want is failure. Success is great. Hooray! The crowds roar at your continued success. But in reality, everything is not peachy. Developers choose to ignore failure planning to their peril. Me? I need ASP.NET Web API to fail. In one of my projects, I utilize…

Authentication and Membership Updates for MVC 4 RTM

I've spent the last couple days moving a project from MVC 4 RC to MVC 4 RTM. It's gone well, but I encountered a couple trouble spots related to MVC 4 authentication and membership that I want to share. Starting Point I'm using a MVC 4 application that was created…

Integration Test ASP.NET Web API with StructureMap

Update 2: I have written a new post going over how to setup StructureMap with the RC of ASP.NET Web API. Go check that out as well. Update: This post was written against the Beta of WebAPI. Word out is that this will change for the release candidate. I…