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

Object reference error in scheduler view while opening scheduler view and close it very fast and again opened

9 Answers 41 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Hardik
Top achievements
Rank 1
Hardik asked on 21 Dec 2011, 07:39 AM
Hi telerik,

This is the error I am getting,

Telerik.Windows.Controls.ScheduleView.ReadOnlyBehavior.<>c__DisplayClass1.<CanEditSlot>b__0(Slot s) kohteessa System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate) kohteessa Telerik.Windows.Controls.ScheduleView.ReadOnlyBehavior.CanEditSlot(Slot slot) kohteessa Telerik.Windows.Controls.ScheduleView.SlotSelectionBehavior.CanEditSlot(SlotSelectionState state, Slot slot) kohteessa Telerik.Windows.Controls.ScheduleView.SlotSelectionBehavior.GetSelectionOverride(SlotSelectionState state, Slot currentSlot) kohteessa Telerik.Windows.Controls.ScheduleView.SlotSelectionBehavior.GetSelection(SlotSelectionState state, Slot currentSlot) kohteessa Telerik.Windows.Controls.ScheduleViewBase.SelectArea(Point clickedPoint) kohteessa Telerik.Windows.Controls.ScheduleViewBase.ScheduleViewMouseLeftButtonDown(Object sender, MouseButtonEventArgs e) kohteessa MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args) kohteessa MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)  

Can you provide any specific reason for this.?

Thanks
H@rdik Pancholi

9 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 21 Dec 2011, 09:21 AM
Hello Hardik,

This is very strange error and we are not able to reproduce it at out side. Please send us sample running project so we can test it locally and provide you with more details.

All the best,
Rosi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Hardik
Top achievements
Rank 1
answered on 26 Apr 2012, 05:22 AM
Hi, sorry for late reply.

I am busy with some production release. I cant provide a sample project, this error is in production site. Can you please tell from the trace-log what scenario can be possible.

Thanks
H@rdik Pancholi
0
Rosi
Telerik team
answered on 27 Apr 2012, 09:21 AM
Hello,

It seems that by some reasons the selected slot becomes null when the selection is already in progress.
Unfortunately without a sample running project there is nothing we can do to reproduce and solve the issue.
I suggest you try to isolate a running project that we can test or remove any code related to selection in CodeBehind and let us known how this goes.

Kind regards,
Rosi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Myles
Top achievements
Rank 1
answered on 16 May 2012, 03:03 PM
I am also seeing this issue on my app.  It seems to occur whilst opening the scheduler view, closing it and then reopening.

My error message is identical:

System.NullReferenceException: Object reference not set to an instance of an object
at
Telerik.Windows.Controls.ScheduleView.ReadOnlyBehavior.<>c__DisplayClass1.<CanEditSlot>b__0(Slot s)

This is a serious issue for us.
0
Rosi
Telerik team
answered on 17 May 2012, 08:27 AM
Hello,

Please open a  support ticket and send us a sample running project illustrating the issue.We will review it and provide you with a solution or more detailed instructions.

All the best,
Rosi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Håkan
Top achievements
Rank 1
answered on 27 Nov 2013, 08:29 AM
Hi!

I'm also getting this error:
at Telerik.Windows.Controls.ScheduleView.ReadOnlyBehavior.<>c__DisplayClass1.<CanEditSlot>b__0(Slot s)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at Telerik.Windows.Controls.ScheduleView.ReadOnlyBehavior.CanEditSlot(IReadOnlySettings readOnlySettings, Slot slot)
at Telerik.Windows.Controls.Helpers.ReadOnlyHelper.CanEditSlot(Slot slot)
at Telerik.Windows.Controls.ScheduleView.SlotSelectionBehavior.CanEditSlot(SlotSelectionState state, Slot slot)
at Telerik.Windows.Controls.ScheduleView.SlotSelectionBehavior.GetSelectionOverride(SlotSelectionState state, Slot currentSlot)
at Telerik.Windows.Controls.ScheduleView.SlotSelectionBehavior.GetSelection(SlotSelectionState state, Slot currentSlot)
at Telerik.Windows.Controls.ScheduleViewBase.TrySelectArea(Point clickedPoint)
at Telerik.Windows.Controls.ScheduleViewBase.ScheduleViewMouseRightButtonDown(Object sender, MouseButtonEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)

It happens sometimes when I select a slot.

Was there any solution or workaround for it?
I'm using the last SIlverlight 4 version.

Regards,
Håkan



0
Rosi
Telerik team
answered on 28 Nov 2013, 04:11 PM
Hi,

I suggest you upgrade to the latest version where this problem demos not exist. You can test it our online demos -http://demos.telerik.com/silverlight/

For more details on supporting Silverlight 4 you can review our roadmap-http://www.telerik.com/products/silverlight/roadmap.aspx


Regards,
Rosi
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Håkan
Top achievements
Rank 1
answered on 29 Nov 2013, 12:16 PM
Hi Rosi!

Unfortunately because of external circumstancer out of our control at the moment, we are unable to upgrade to Silverligt 5.
Is there any workaround for this error in the latest Silverlight 4 version?

I tried to catch the error in the Application_UnhadledException method in App.xaml.cs like this:
if (e.ExceptionObject.Message == "Object reference not set to an instance of an object." &&
                   e.ExceptionObject.StackTrace.Trim().StartsWith("at Telerik.Windows.Controls.ScheduleView.ReadOnlyBehavior"))
                   e.Handled = true;

And it works, but not always. Sometimes the page just goes blank without ending up here.

Regards,
Håkan


0
Rosi
Telerik team
answered on 04 Dec 2013, 09:04 AM
Hi,

As we are not able to reproduce the problem at our side I suggest you open a support ticket and send us sample running project that we can test and try to implement a workaround in it.

Regards,
Rosi
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ScheduleView
Asked by
Hardik
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Hardik
Top achievements
Rank 1
Myles
Top achievements
Rank 1
Håkan
Top achievements
Rank 1
Share this question
or