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 being a little fickle in deciding to switch. Ask me for a definitive reason and I’ll waffle something about having to create my own binding handlers in knockout.…

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 by Microsoft so we’ve got access to top tier tools and, most importantly, Windows Azure, at no cost to us. Pieces of Azure In Use There are a number of Azure services MomCharts runs.…

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. It will rebuild your .ts files when you save them. This one is an easy fix. Here’s the situation: You downloaded and installed the TypeScript and opened up your existing ASP.…

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 the ASP.NET Web API for the heavy lifting. My JavaScript and jQuery code make a lot of AJAX calls to the API and so far, I’ve got all of the success handlers written.…

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 pre-RTM, so I’m working through some pain that won’t cause trouble for people creating new MVC 4 applications. Microsoft provides some information on how to upgrade a project from MVC 3 to MVC 4 on their website.…

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 have not yet done a new post for the release candidate. You can read some about these changes here. I intend to write a new post once the RC has been released.…