With this javascript error.
"Ajax client-side framework failed to load" and "Type is not defined"
However in Front page have no problem so I check on Admin page source and found this line in Default.aspx (rememver i cannot insert any tag here.)
asp:ScriptReference Name="MicrosoftAjax.js" Path="../ClientScripts/MicrosoftAjaxCustom/MicrosoftAjax.js"
but in source code they use this
script src="../ClientScripts/MicrosoftAjaxCustom/MicrosoftAjax.en-US.js" type="text/javascript"
Yes they have add Culture to path we reference so it can't find correct javascript
for setting in web.config compilation debug="true"
This will use ClientScripts\MicrosoftAjaxCustom\MicrosoftAjax.debug.js
and if compilation debug="false"
They will use ClientScripts\MicrosoftAjaxCustom\MicrosoftAjax.js
This happend in some server depend on server setting. not anyone found this
but finally I found solution for this
copy old script and place with culture in end of file name get rid of this error.
( Keep old file for compatible on any server that they don't add culture to script name )
Note * we use custome script to fix chrome loading issue but this only work with debug="true" if set false it will failed on load in Admin Some page.
ไม่มีความคิดเห็น:
แสดงความคิดเห็น