localized Microsoft Ajax CDN reference not working in asp.net webforms
In vs2010, I start a new project > asp.net web application and get presented with the new default webapp. I add a scriptmanager tag, with CDN set to enabled and as a result it tries to contact Microsoft's CDN at ajax.microsoft.com, and not only that, it tries to load the localized files from a url that doesn't exist.
Anybody got an idea where I can change this for the default web application template or in the solution itself?
<asp:ScriptManager ID="smgr" ScriptMode="Auto" EnableCdn="true" runat="server">
tries to loads the files from: http://ajax.microsoft.com/ajax/4.0/1/MicrosoftAjax.nl.js
Or d开发者_开发技巧oes the EnableCdn mean that I have to manually map all the .js (incl the microsoft ones) ? For the record, I'm using VS2010 with all the latest updates.
Damian Edwards is looking into this now.
You can turn off localization or globalization for the Scriptmanager:
Setting EnableScriptLocalization=false will resolve your issue.
I received an answer by email from Damian Edwards, so I thought and post it here so if anybody else runs into this, they know the reason why...
Sorry for the delay in replying. We don’t currently host localized versions of the JavaScript files on our CDN. It is “on the list” to get done, but is not a trivial task. I hope to have it completed in the next few months.
Sorry for the inconvenience. Damian
精彩评论