1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Value cannot be null

Value cannot be null

4 posts, 1 answered
  1. Anton
    Anton avatar
    13 posts
    Registered:
    02 Aug 2011
    24 Aug 2011
    Link to this post
    Hi 

    I've got a problem while trying to access my homepage. It occur only with homepage and only when  I logged out from sitefinity

    It seems to me that something wrong with database...

    Here is stack trace:

    Value cannot be null.
    Parameter name: source

    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.ArgumentNullException: Value cannot be null.
    Parameter name: source

    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: 

    [ArgumentNullException: Value cannot be null.
    Parameter name: source]
       System.Linq.Enumerable.Where(IEnumerable`1 source, Func`2 predicate) +4188327
       Telerik.Sitefinity.Security.SecuredObjectExtensions.GetActivePermissions(ISecuredObject securedObject) +640
       Telerik.Sitefinity.Security.SecurityExtensions.IsGranted(ISecuredObject item, String permissionSet, Guid[] principals, Int32 actions) +1213
       Telerik.Sitefinity.Security.SecurityExtensions.IsGranted(ISecuredObject item, String permissionSet, String[] actions) +785
       Telerik.Sitefinity.Security.SecuredObjectExtensions.IsGranted(ISecuredObject securedObject, SecurityActionTypes actionType) +940
       Telerik.Sitefinity.Web.UI.SecuredControl.get_IsGranted() +104
       Telerik.Sitefinity.Web.UI.SecuredControl.get_Visible() +68
       System.Web.UI.Control.PreRenderRecursiveInternal() +18
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
    



    Any suggestions ? 
  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    24 Aug 2011
    Link to this post
    I encountered this issue previously when I had a widget (or layout control) on a page that was set to be viewable only by administrators.

    Can you check the widget and layout control permissions on the page and verify they are set to be viewable by everyone?
  3. Anton
    Anton avatar
    13 posts
    Registered:
    02 Aug 2011
    25 Aug 2011
    Link to this post
    Yes, all  widget and layout control permissions on the page are set to be viewable by everyone.
    I can't edit homepage template. All 'edit' & 'more' tools are non-clickable.
    And while creating new template I've got message box : 'Input sequence contains more than one element' even if I added nothing
  4. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    29 Aug 2011
    Link to this post
    Hello Anton,

    Can you try to remove the control and drop it again on the page? Sometimes you can experience similar behaviour after upgrading your project. Is this your case? If it is not can you tell me what have you done prior to start receiving the error?

    About the Input sequence contains more than one element error - I have answered you in the support ticket.

    Kind regards,
    Victor Velev
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

    Answered
4 posts, 1 answered