DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Bug in ScriptManager?

Sort:
You are not authorized to post a reply.





Growing Member





    Hi!

    It seems I stumbled upon a bug in ScriptManager or AJAX, depending on your view point. I just recently noticed that when you switch on our DNN site (v9) to German locale, the Script Manager attempts to load MicrosoftAjax.de.js instead of MicrosoftAjax.js. We have CDN enabled and Microsoft does not host such a file on their Ajax CDN web site.

    Is anyone else expiriencing this problem that has CDN for Ajax enabled? Maybe it's just our upgraded site.

    The fix was to change this in AJAX.cs:
    using (var scriptManager = new ScriptManager //RadScriptManager
    {
       ID = "ScriptManager",
       EnableScriptGlobalization = true,
       SupportsPartialRendering = true
     })

    into that:

    using (var scriptManager = new ScriptManager //RadScriptManager
    {
       ID = "ScriptManager",
       EnableScriptGlobalization = true,
       SupportsPartialRendering = true,
       EnableScriptLocalization = false
    })

    AFAIK there are no localized versions of MicrosoftAjax.js.

    This fixed the problem and now it requests the correct file. We actually got some flickering when switching between pages because of that bug and then checked in Web Developer -> Network (Firefox) to see the bad request.

    Maybe someone wants to open a bug for that if expiriencing the same problem on their site.

    Andreas






    Growing Member





      Is this working properly for anyone else?

      Am wondering a bit why it is including the Ajax script at all, because on the main page for example, we only have the banner and the HTML modules. Is one of those causing this? As far as I understand this process, each module can decide what it needs, right? Or is Ajax always included?

      Our pages run with Javascript disabled as well, therefore we did not notice it until we checked the network requests going out with the browser.

      The problem should occur, if you have CDN enabled (didn't try disabling it again) and you switch to a different locale.

      Andreas

      You are not authorized to post a reply.

      These Forums are dedicated to the discussion of DNN Platform.

      For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

      1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
      2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
      3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
      4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
      5. No Flaming or Trolling.
      6. No Profanity, Racism, or Prejudice.
      7. Site Moderators have the final word on approving / removing a thread or post or comment.
      8. English language posting only, please.

      Would you like to help us?

      Awesome! Simply post in the forums using the link below and we'll get you started.

      Get Involved