Recently I was scribbling out some for a ListView control and wrote out a WinJS.Binding.Template in default.html. I misspelled data-win-control, leaving off the ‘l’ at the end:

<div id=”entryTemplate” data-win-contro=”WinJS.Binding.Template”>

The result of this was a curious exception way down in WinJS: (for the benefit of search engines, the error text is “Exception is about to be caught by JavaScript library code at line 20074, column 9 in ms-appx://microsoft.winjs.1.0/js/ui.js … 0x800a138f – JavaScript runtime error: Object expected”)

Spelling data-win-control correctly fixed the problem, but I wanted to make a note of what caused this error with a WinJS.Binding.Template. Basically because I’d misspelled the attribute name, a template control never got created, thus the non-existent object.