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

10 posts, 0 answers
  1. Hardik
    Hardik avatar
    61 posts
    Member since:
    Jun 2011

    Posted 21 Dec 2011 Link to this post

    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
  2. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 21 Dec 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Hardik
    Hardik avatar
    61 posts
    Member since:
    Jun 2011

    Posted 26 Apr 2012 Link to this post

    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
  5. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 27 Apr 2012 Link to this post

    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 >>

  6. Myles
    Myles avatar
    18 posts
    Member since:
    Mar 2012

    Posted 16 May 2012 Link to this post

    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.
  7. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 17 May 2012 Link to this post

    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 >>

  8. Håkan
    Håkan avatar
    183 posts
    Member since:
    May 2011

    Posted 27 Nov 2013 Link to this post

    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



  9. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 28 Nov 2013 Link to this post

    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 >>
  10. Håkan
    Håkan avatar
    183 posts
    Member since:
    May 2011

    Posted 29 Nov 2013 Link to this post

    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


  11. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 04 Dec 2013 Link to this post

    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 >>
Back to Top
DevCraft banner