ScriptManager giving object reference error

2 posts, 0 answers
  1. Adam Hager
    Adam Hager avatar
    9 posts
    Member since:
    Nov 2009

    Posted 13 Nov 2009 Link to this post

    I have a new page using the RAD listboxes, when I place the RAD scriptmanager on the page and navigate to it, I recieve an object reference not set to an instance error message.  I am running telerik version 2009.3.1103.35.  If I replace the rad script manager with a regular script manager the error stops but none of the skins are working correctly.

    <%

    @ Page Language="C#" AutoEventWireup="true" CodeBehind="ShipmentForwardingVendorCrews.aspx.cs"

     

     

    Inherits="Graebel.RITS.Web.Relocations.ShipmentForwardingVendorCrews" %>

     

    <%

    @ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

     

    <%

    @ Register assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" namespace="System.Web.UI.WebControls" tagprefix="asp" %>

     

    <!

     

    DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

     

    <

     

    html xmlns="http://www.w3.org/1999/xhtml">

     

    <

     

    head runat="server">

     

     

    <title>Shipment Forwarding Vendor Crews</title>

     

     

    <link href="../Graebel.css" rel="stylesheet" />

     

    </

     

    head>

     

    <

     

    body>

     

     

    <form id="ShipmentForwardingVendorCrews" runat="server">

     

     

    <asp:ScriptManager ID="ScriptManager1" runat="server">

     

     

    </asp:ScriptManager>

     

     

    <asp:Panel ID="PageContent" runat="server">

     

     

    <h1>

     

    Shipment Forwarding Vendor Crews

    </h1>

     

     

    <br />

     

     

    <asp:DropDownList ID="ddlODAgent" runat="server">

     

     

    </asp:DropDownList>

     

     

    <br />

     

     

    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">

     

     

    <telerik:RadListBox ID="rlbIsNotCrewLeads" runat="server" Width="200px"

     

     

    Height="200px" AllowTransfer="True"

     

     

    TransferToID="rlbIsCrewLeads" AutoPostBackOnTransfer="True"

     

     

    AllowReorder="True" AutoPostBackOnReorder="True" EnableDragAndDrop="True"

     

     

    DataSourceID="UnassignedCrewLeadsDataSource" DataKeyField="VendorCrewId" DataTextField="FirstName"

     

     

    DataValueField="VendorCrewId" Skin="Sunset" BorderColor="Black"

     

     

    BorderWidth="2px" CausesValidation="False" EmptyMessage="No Crew Members Exist"

     

     

    ForeColor="Black">

     

     

    <EmptyMessageTemplate>

     

    No Crew Members Exist

     

    </EmptyMessageTemplate>

     

     

    </telerik:RadListBox>

     

     

    <telerik:RadListBox ID="rlbIsCrewLeads" runat="server" Width="200px" Height="200px"

     

     

    SelectionMode="Multiple" AllowReorder="True" AutoPostBackOnReorder="True"

     

     

    EnableDragAndDrop="True" Skin="Telerik"

     

     

    EmptyMessage="No Assigned Crew Members Exist">

     

     

    <EmptyMessageTemplate>

     

    No Assigned Crew Members Exist

     

    </EmptyMessageTemplate>

     

     

    </telerik:RadListBox>

     

     

    <br />

     

     

    </telerik:RadAjaxPanel>

     

     

    <asp:EntityDataSource ID="UnassignedCrewLeadsDataSource" runat="server"

     

     

    AutoGenerateWhereClause="True"

     

     

    CommandText="SELECT value crew

     

    FROM VendorCrew AS crew

    WHERE NOT EXISTS(SELECT sfvc.VendorCrew.VendorCrewId

    FROM ShipmentForwardingVendorCrew AS sfvc

    WHERE sfvc.Shipments.ShipmentId = @ShipmentId)

    AND crew.CompanyEntities.CompanyEntityId = @VendorId

    AND crew.IsActive = true

    AND crew.IsCrewLead = true"

     

     

     

    ConnectionString="name=RITSNetEntities"

     

     

    DefaultContainerName="RITSNetEntities"

     

     

    Include="ShipmentForwardingVendorCrew,CompanyEntities">

     

     

    <CommandParameters>

     

     

    <asp:QueryStringParameter Name="ShipmentId" QueryStringField="10" Type="Int32" />

     

     

    <asp:ControlParameter ControlID="ddlODAgent" Name="VendorId"

     

     

    PropertyName="SelectedValue" Type="Int32" />

     

     

    </CommandParameters>

     

     

    </asp:EntityDataSource>

     

    <%

    --<asp:EntityDataSource ID="AssignedCrewLeadsDataSource" runat="server"

     

    AutoGenerateWhereClause="True"

    CommandText="SELECT value crew

    FROM VendorCrew AS crew

    WHERE EXISTS(SELECT sfvc.VendorCrew.VendorCrewId

    FROM ShipmentForwardingVendorCrew AS sfvc

    WHERE sfvc.Shipments.ShipmentId = @ShipmentId)

    AND crew.CompanyEntities.CompanyEntityId = @VendorId

    AND crew.IsActive = true

    AND crew.IsCrewLead = true"

    ConnectionString="name=RITSNetEntities"

    DefaultContainerName="RITSNetEntities"

    Include="ShipmentForwardingVendorCrew,CompanyEntities">

    <CommandParameters>

    <asp:QueryStringParameter Name="ShipmentId" QueryStringField="10" Type="Int32" />

    <asp:ControlParameter ControlID="ddlODAgent" Name="VendorId"

    PropertyName="SelectedValue" Type="Int32" />

    </CommandParameters>

    </asp:EntityDataSource>--

     

    %>

     

     

    <asp:EntityDataSource ID="UnassignedCrewDataSource" runat="server"

     

     

    AutoGenerateWhereClause="True"

     

     

    CommandText="SELECT value crew

     

    FROM VendorCrew AS crew

    WHERE NOT EXISTS(SELECT sfvc.VendorCrew.VendorCrewId

    FROM ShipmentForwardingVendorCrew AS sfvc

    WHERE sfvc.Shipments.ShipmentId = @ShipmentId)

    AND crew.CompanyEntities.CompanyEntityId = @VendorId

    AND crew.IsActive = true"

     

     

     

    ConnectionString="name=RITSNetEntities"

     

     

    DefaultContainerName="RITSNetEntities"

     

     

    Include="ShipmentForwardingVendorCrew,CompanyEntities">

     

     

    <CommandParameters>

     

     

    <asp:QueryStringParameter Name="ShipmentId" QueryStringField="10" Type="Int32" />

     

     

    <asp:ControlParameter ControlID="ddlODAgent" Name="VendorId"

     

     

    PropertyName="SelectedValue" Type="Int32" />

     

     

    </CommandParameters>

     

     

    </asp:EntityDataSource>

     

    <%

    --<asp:EntityDataSource ID="AssignedCrewDataSource" runat="server"

     

    AutoGenerateWhereClause="True"

    CommandText="SELECT value crew

    FROM VendorCrew AS crew

    WHERE EXISTS(SELECT sfvc.VendorCrew.VendorCrewId

    FROM ShipmentForwardingVendorCrew AS sfvc

    WHERE sfvc.Shipments.ShipmentId = @ShipmentId)

    AND crew.CompanyEntities.CompanyEntityId = @VendorId

    AND crew.IsActive = true"

    ConnectionString="name=RITSNetEntities"

    DefaultContainerName="RITSNetEntities"

    Include="ShipmentForwardingVendorCrew,CompanyEntities">

    <CommandParameters>

    <asp:QueryStringParameter Name="ShipmentId" QueryStringField="10" Type="Int32" />

    <asp:ControlParameter ControlID="ddlODAgent" Name="VendorId"

    PropertyName="SelectedValue" Type="Int32" />

    </CommandParameters>

    </asp:EntityDataSource>--

     

    %>

     

     

    </asp:Panel>

     

     

    </form>

     

    </

     

    body>

     

    </

     

    html>

     

  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 18 Nov 2009 Link to this post

    Hi Adam Hager,

    This is indeed strange as RadScriptManager only combines and compresses the javascript files and has nothing to do with the skins. Also, what exactly happens when you use the ScriptManager - can you attach a print screen here?
    Can you paste here the full stack trace of the exception when the RadScriptManager was used?


    All the best,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top