Thursday, August 30, 2012

MVC Error: 0x800a1391 - Microsoft JScript runtime error: 'Sys' is undefined

If you get the error:

MVC 0x800a1391 - Microsoft JScript runtime error: 'Sys' is undefined

Then first check to make sure you have included the correct MVC javascript files:

C#:

<script src="<%= Url.Content("~/Scripts/MicrosoftAjax.debug.js") %>" 
    type="text/javascript"></script> 
<script src="<%= Url.Content("~/Scripts/MicrosoftMvcAjax.debug.js") %>"
    type="text/javascript"></script>

VB.Net:

<script src="@Url.Content("~/Scripts/MicrosoftAjax.js")" type="text/javascript"></script> 
<script src="@Url.Content("~/Scripts/MicrosoftMvcAjax.js")" type="text/javascript"></script>

No comments:

Post a Comment

Remember, if you want me to respond to your comment, then you need to use a Google/OpenID account to leave the comment.