In my razor view that using knockout and supposedly knockout validation I add the following line (to actually start using ko validation):
<script src="@Url.Content("~/Scripts/knockout.validation.debug.js")" type="text/javascript"></script>
- When I run this view in Chrome validation is working perfectly.
- When I run this view in IE (9.0), I get pretty ugly message saying the following:
0x800a138f - Microsoft JScript runtime error: Unable to get value of the property 'rules': object is null or undefined.
(in text for future searches on SO) After hitting "Continue" it works well and validation seems to be working fine. Its just this message.
Worth mentioning that I searched through the solution - I don't use "rules" in no place. Not sure what is going on with IE.
Does anybody have any idea as to why would it happen and how to eliminate the error?