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

[Solved] Error in AppointmentControl.Initialize()

3 Answers 141 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rune
Top achievements
Rank 2
Rune asked on 07 Aug 2009, 11:08 AM
Hi,

I have been working around with the scheduler and now I have somehow provoked the error underneith.
To provoke the error I drag-resize an appointment in week or day view. The Update method in my custom SchedulerProvider is run without a problem and after that the page just displays the error.

Any Idea what I am doing wrong to make it fail in the Telerik.Web.UI.AppointmentControl.Initialize() method?

 

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.


Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.AppointmentControl.Initialize() +17
   Telerik.Web.UI.DayViewAppointmentControl..ctor(Appointment appointment, DateTime visibleStart, DateTime visibleEnd, Int32 minutesPerRow) +255
   Telerik.Web.UI.Scheduler.Views.RowBuilder.CreateAppointmentControls(Control container, SchedulerTimeSlot slot) +213
   Telerik.Web.UI.Scheduler.Views.RowBuilder.CreateDayViewCell(SchedulerTimeSlot slot, Int32 zIndex) +84
   Telerik.Web.UI.Scheduler.Views.RowBuilder..ctor(IList`1 slotList, Int32 maxColumnWidth) +494
   Telerik.Web.UI.Scheduler.Views.Week.RendererBase.CreateViewRows(IList`1 slotLists) +151
   Telerik.Web.UI.Scheduler.Views.Week.RendererBase.CreateInnerContentTable(Control container, IList`1 slotLists) +88
   Telerik.Web.UI.Scheduler.Views.Week.Renderer.GetInnerContent() +131
   Telerik.Web.UI.Scheduler.Views.Week.Renderer.GetContent() +82
   Telerik.Web.UI.RadScheduler.CreateContent() +121
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +106
   Telerik.Web.UI.RadScheduler.ClearChildControls() +67
   Telerik.Web.UI.RadScheduler.Rebind() +13
   Telerik.Web.UI.RadScheduler.FinishResize(Appointment originalAppointment, Appointment modifiedAppointment) +124
   Telerik.Web.UI.RadScheduler.ResizeAppointment(Appointment appointmentToResize, DateTime appointmentEnd, Boolean editSeries) +203
   Telerik.Web.UI.RadScheduler.Telerik.Web.UI.IScheduler.HandleResize(Appointment appointmentToResize, DateTime appointmentEnd, Boolean editSeries) +27
   Telerik.Web.UI.Scheduler.Views.Week.Model.HandleResize(Appointment appointment, ISchedulerTimeSlot sourceSlot, ISchedulerTimeSlot targetSlot, Boolean editSeries) +196
   Telerik.Web.UI.Scheduler.Views.Week.ModelBase.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +306
   Telerik.Web.UI.RadScheduler.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +3006
   Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String eventArgument) +62
   Telerik.Web.UI.RadScheduler.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 10 Aug 2009, 11:07 AM
Hello Rune,

Can you try your appliaction with the current official version - 2009.2.701. A lot of issues have been fixed since version 2009.1.402.

Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Rune
Top achievements
Rank 2
answered on 10 Aug 2009, 01:56 PM
I'm allready using the newest version. That fixed some other problems I had.
0
Peter
Telerik team
answered on 10 Aug 2009, 03:45 PM
Hi Rune,

Can you isolate the problem in a simple working project and send it to us via a support ticket?

Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Scheduler
Asked by
Rune
Top achievements
Rank 2
Answers by
Peter
Telerik team
Rune
Top achievements
Rank 2
Share this question
or