This is a migrated thread and some comments may be shown as answers.

[Solved] AJAX Error while deploying to server

2 Answers 264 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Tanuj
Top achievements
Rank 1
Tanuj asked on 23 Feb 2008, 10:42 PM
'Sys.WebForms.PageRequestManager' is null or not an object

Sys.WebForms has no properties  
set_uniqueID("RadAjaxManager1")ScriptResource.ax... (line 124)  
Sys$Component$_setProperties(Object _element=span#RadAjaxManager1 _clientEvents=Object, Object ajaxSettings=[1] clientEvents=Object)ScriptResource.ax... (line 2776)  
Sys$Component$create(function(), Object ajaxSettings=[1] clientEvents=Object, null, null, span#RadAjaxManager1)ScriptResource.ax... (line 2837)  
(no name)()events.aspx (line 319)  
_handler(Object _disposableObjects=[1] _components=Object, Object)ScriptResource.ax... (line 2503)  
Sys$_Application$_doInitialize()ScriptResource.ax... (line 3792)  
(no name)()ScriptResource.ax... (line 50)  
[Break on this error] window[Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._u... 

The Scheduler works fine on  the local machine. when i deploy the code on our test server, i get the above error, however the page is loaded, but none of the onclick functions work.

i have also installed the AJAX extensions on the test server, i see the System.Web.Extensions.dll in the C:\Windows\assembly folder.

Please advise if i am missing something here. (here is the code)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="events.aspx.cs" Inherits="events" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!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>Events Calendar</title> 
</head> 
<body style="margin:0px;padding:0px;">  
    <form id="form1" runat="server" style="margin:0px;padding:0px;">  
        <asp:ScriptManager ID="ScriptManager" runat="server" /> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadScheduler1">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="30" BackColor="#E0E0E0" InitialDelayTime="500">  
            <asp:Image ID="Image1" Style="margin-top: 200px" runat="server" ImageUrl="images/loading7.gif" 
                BorderWidth="0px" AlternateText="Loading"></asp:Image> 
        </telerik:RadAjaxLoadingPanel>          
        <telerik:RadScheduler runat="server" ID="RadScheduler1" OverflowBehavior="Expand" ShowFooter="false"     
            Width="750px" Skin="Default" EnableEmbeddedSkins="True" TimeZoneOffset="03:00:00" 
            SelectedDate="2008-02-29" DayStartTime="08:00:00" DayEndTime="18:00:00" 
            OnDataBound="RadScheduler1_DataBound" > 
        </telerik:RadScheduler>     
    </form> 
</body> 
</html> 
 

2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 26 Feb 2008, 08:55 AM
Hi Tanuj,

This JavaScript error might indicate that ASP.NET Ajax is not configured properly. You can check the following web page for all required steps.

Is there any live URL where we can see the problem? This will help us identify it and provide a solution. Thanks.

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Tanuj
Top achievements
Rank 1
answered on 27 Feb 2008, 03:22 AM
unistalled AJAX and re installed again and it now works fine.

thanks for the reply
Tags
Scheduler
Asked by
Tanuj
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Tanuj
Top achievements
Rank 1
Share this question
or