Click here to Skip to main content
15,918,243 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have an error I can`t figure out of.
0x800a138f - Microsoft JScrip runtime error: `Sys.Extended.UI` is null or not an object

the file that cant run: Upload.aspx
ASP.NET
<%@ Page Title="UplaodFile" Language="VB" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" codefile="Upload.aspx.vb" Inherits="Project_Slan.AjaxFileUpload"%>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
            </hgroup>
 
        </div>
    </section>

</asp:Content>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">

   <h3>Ajax FileUpload</h3>
    
    
    <asp:AjaxFileUpload ID="AjaxFileUpload1" runat="server"
        OnUploadComplete="AjaxFileUploadEvent" Width="500px" />

    
</asp:Content>
<asp:Content ID="Content1" runat="server" contentplaceholderid="HeadContent">
</asp:Content>

The VB codefile: Upload.aspx.vb
VB
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports AjaxControlToolkit

Namespace Project_Slan
    Partial Public Class AjaxFileUpload
        Inherits System.Web.UI.Page
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)

        End Sub

        Protected Sub AjaxFileUploadEvent(ByVal sender As Object, ByVal e As AjaxFileUploadEventArgs)
            Dim filename As String = System.IO.Path.GetFileName(e.FileName)
            Dim strUploadPath As String = "~/uploads/"
            AjaxFileUpload1.SaveAs(Server.MapPath(strUploadPath) + filename)
        End Sub

    End Class

End Namespace 


And the scrips in the masterpage:
ASP.NET
<form id="masterform1"  runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Name="MsAjaxBundle" />
            <asp:ScriptReference Name="jquery" />
            <asp:ScriptReference Name="jquery.ui.combined" />
            <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
            <asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
            <asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
            <asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
            <asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
            <asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
            <asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
            <asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
            <asp:ScriptReference Name="WebFormsBundle" />
    </scripts>
</asp:scriptManager>

any ideas on what is wrong?

Thanks in advance!
Posted

1 solution

I don't see any ToolkitScriptManager tag in there

<asp:ToolkitScriptManager ID="ToolkitScriptManager1″ runat="server" CombineScripts="false" ></asp:ToolkitScriptManager>
should sort it
 
Share this answer
 
Comments
prototypen 8-Jul-14 17:47pm    
Thanks for responding, the problem is that I have a Script Manager in the masterpage, and the system allowed only one in use. how can i add the ToolkitScriptManager without destroying everything?

When i cange the scriptmanager to toolkitscript manager all the Scripts can`t load.
and with error. ToolkitScriptmanager is not a known element.
CHill60 9-Jul-14 2:34am    
I didn't think you could use Ajax controls without the ToolkitScriptManager tag ... might be wrong. I also thought it would have to be in upload.aspx.
There are known issues with IE11 so if you were using IE try another browser to see if the problem goes away.
The only other thing I can suggest is make sure that your ajax toolkit is up to date.
If none of these suggestions work, let me know and I will delete this solution
prototypen 9-Jul-14 9:14am    
It Was the ToolkitScriptManager missing, and some in the web.conf

but it destroys some other features to my site so I will find another way to add this feature without Ajax

Thank you for taking the time to answer me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900