Microsoft JScript Runtime Error: "Sys.Extended.UI" is null or not an object
I have a problem on my page. When it opens, the following error message appears:
Microsoft JScript Runtime Error: "Sys.Extended.UI" is null or not an object
<ajax:ToolkitScriptManager ID="tsm" runat="server" CombineScripts="false" >
</ajax:ToolkitScriptManager>
and the displayed error
$create(Sys.Extended.UI.ModalPopupBehavior, {"BackgroundCssClass":"modalBackground1","DropShadow":true,"PopupControlID":"ctl00_ContentPlaceHolder1_panelPopupAddDefaultAddress","PopupDragHandleControlID":"ctl00_ContentPlaceHolder1_panelPopupAddDefaultAddressDragHandle","dynamicServicePath":"/SJM.Framework.Website/Order/ActiveOrders.aspx","id":"ctl00_ContentPlaceHolder1_modalPopupAddDefaultAddress"}, null, null, $get("ctl00_ContentPlaceHolder1_hiddenTargetControlForModalPopup"));
Can anyone tell me what the problem is. I tried it but I didn't find it.
source to share
I just solved that the "Sys.Extended.UI" problem is null or non-object by adding the directive:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
which was missing from the .aspx code for some reason.
And replacing <asp:ScriptManager ID="ScriptManager1" runat="server" />
from
<ajaxToolkit:ToolkitScriptManager runat="server" ID="ToolkitScriptManager" EnablePartialRendering="true"></ajaxToolkit:ToolkitScriptManager>
source to share
I saw this error when I was in a .NET 4.0 solution and the AjaxControlToolkit.dll file I referenced was v4.5.xy The error disappeared when I tried the AjaxControlToolkit.dll file which was v4.1.vw where I don't remember which x, y, v and w are.
To find out which version the AjaxControlToolkit.dll file is in, right-click it after adding it as a link and select Properties - there is a Version property that will tell you.
source to share