{"id":1942,"date":"2022-08-30T15:20:44","date_gmt":"2022-08-30T15:20:44","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/05\/keep-geeting-errors-when-i-use-razor-views-for-the-updated-hot-towel-template-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:20:44","modified_gmt":"2022-08-30T15:20:44","slug":"keep-geeting-errors-when-i-use-razor-views-for-the-updated-hot-towel-template-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/keep-geeting-errors-when-i-use-razor-views-for-the-updated-hot-towel-template-collection-of-common-programming-errors\/","title":{"rendered":"Keep geeting errors when I use razor views for the updated Hot Towel Template-Collection of common programming errors"},"content":{"rendered":"<p>I am using the upgraded version of Hot Towel template which has new versions of Durandal, Knockout, Breeze, etc. for a Single Page Application. This process works fine with the older version but not the newest.<\/p>\n<p>This is the error I get:<\/p>\n<blockquote>\n<p>Unhandled exception at line 93, column 13 in [http:\/\/servername:50921\/Scripts\/durandal\/viewEngine.js]<\/p>\n<p>0x800a138f &#8211; Microsoft JScript runtime error: Unable to get value of the property &#8216;length&#8217;: object is null or undefined<\/p>\n<\/blockquote>\n<p>I have changed the convention for the viewLocator in the main to use my ViewController.<\/p>\n<pre><code>    viewLocator.useConvention('viewmodels', '..\/..\/view');\n    viewEngine.viewExtension = '\/';\n<\/code><\/pre>\n<p>This use to work fine in the previous version of Hot Towel Template.<\/p>\n<p>Please any ideas for the errors&#8230; will be grateful for any.<\/p>\n<p>Thanks.<\/p>\n<p id=\"rop\"><small>Originally posted 2013-12-05 09:42:21. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am using the upgraded version of Hot Towel template which has new versions of Durandal, Knockout, Breeze, etc. for a Single Page Application. This process works fine with the older version but not the newest. This is the error I get: Unhandled exception at line 93, column 13 in [http:\/\/servername:50921\/Scripts\/durandal\/viewEngine.js] 0x800a138f &#8211; Microsoft JScript [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1942","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1942"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1942\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}