Server Error (Object reference not set to an instance of an object)

Server Error (Object reference not set to an instance of an object)

  • I'm using CS .NET 2.0 with an MSI installation.  This error is only occurring to one user at this time, I'm able to view the site without any issues and so are other users.  Please help or guide me in the appropriate direction to resolve.

     

     

    Object reference not set to an instance of an object. 

     

    User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
    Path: /eyp/default.aspx as HTTP GET
    Referrer: /eyp/Msgs/default.aspx?MessageID=73
    Message: Object reference not set to an instance of an object.
    System.NullReferenceException: Object reference not set to an instance of an object.
    at CommunityServer.Components.Roles.GetUserRoleNames(String username, Boolean cacheable)
    at CommunityServer.Components.Section.ResolvePermission(User user)
    at CommunityServer.Galleries.Components.GalleryPermission.Validate(Section section, Permission permission, User user, Post p)
    at CommunityServer.Components.Permissions.ValidatePermissions(Section section, Permission permission, User user, Post p)
    at CommunityServer.Components.Permissions.ValidatePermissions(Section section, Permission permission, User user)
    at CommunityServer.Galleries.Galleries.GetGalleries(CSContext csContext, Int32 userID, Boolean ignorePermissions, Boolean cacheable, Boolean flush, Boolean ignoreLanguageFilter)
    at CommunityServer.Galleries.Galleries.GetGalleries(Int32 userID, Boolean ignorePermissions, Boolean cacheable, Boolean flush)
    at CommunityServer.Galleries.Controls.AggregatePortalPictureListing.BindData()
    at CommunityServer.Galleries.Controls.AggregatePortalPictureListing.DataBind()
    at CommunityServer.Galleries.Controls.AggregatePortalPictureListing.OnLoad(EventArgs e)
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

  • You may want to check this user's account in the membership section of the control panel and look at what roles they have.  Also, double-check that they are indeed a member of at least one role and report back what you find.  Also, you may want to verify that the roles they are a member of still exist and have not been renamed.

    Please let me know if you have any questions.

     

    Thanks,

  •  I had the user clear cache and cookies and then they were able to access the site just fine. I'm still not sure why they encountered that problem.

     Thanks for you help though.

     
    Cheers