• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 548
  • Last Modified:

Why is MicrosoftAjax.en-US.js expected when MicrosoftAjax.js specified

Even though in my test page the MicrosoftAjax.js is included in the path, it returns an error saying "Sys" is undefined"... View source of the page shows that somehow MicrosoftAjax.en-US.js  is in the path.

<asp:ScriptManager ID="ScriptManager1" runat="server"  >
            <asp:ScriptReference Name="MicrosoftAjax.js" ScriptMode="Auto" Path="MicrosoftAjaxLibrary/System.Web.Extensions/" />
            <asp:ScriptReference Name="MicrosoftAjaxWebForms.js" ScriptMode="Auto" Path="MicrosoftAjaxLibrary/System.Web.Extensions/" />


 I made a copy of  /MicrosoftAjax.js" &  MicrosoftAjaxWebForms.js and called it MicrosoftAjax.en-US.js & MicrosoftAjaxWebForms.en-US.js in the same location and now it works.
I'm not sure why this is and what the ramifications are if I move this to production.  Any suggestions?
1 Solution
nicholsfAuthor Commented:
Setting  EnableScriptLocalization="false"  in the ScriptManager Tag fixed the problem
<asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptLocalization="false" >
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now