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

Posted on 2008-11-17
Last Modified: 2013-11-08
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?
Question by:nicholsf
    1 Comment

    Accepted Solution

    Setting  EnableScriptLocalization="false"  in the ScriptManager Tag fixed the problem
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptLocalization="false" >

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now