I recently encountered an issue with my AJAX Control Toolkit File Upload (Version 15.1.4) in my ASP.Net Web Application. Up until this week, it was functioning perfectly fine. However, starting yesterday, I started receiving a JavaScript error right after selecting a file.
Object doesn't support property or method 'setText'
in the ScriptResource.axd
:
fileInfoContainer.appendChild(fileInfoText);
fileInfoContainer.appendChild(fileStatusText);
$common.setText(deleteButton, Sys.Extended.UI.Resources.AjaxFileUpload_Remove); <== here
$addHandlers(deleteButton, {
'click': Function.createDelegate(this, function() {
onRemoveItem(self);
})
});
I haven't made any recent changes to this page (I haven't touched it in the last week) and another similar page in the Web Application is working perfectly fine with no issues.
Does anyone have any insights as to why the ScriptResource is throwing this exception? Thank you in advance :)