Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nick Frederiksen 18 posts 77 karma points
    Oct 25, 2012 @ 13:35
    Nick Frederiksen
    0

    NullReferenceException on comment submission

    Hi,
    First off, nice package!
    On topic:
    I have a client, that runs umbraco 4.7.1 (can't upgrade due to too many unknown factors). I have then installed the uBlogsy 2.1.1.1 package, as I've done a gazillion times before, but I've encountered a very strange error message:

    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.]
       uBlogsy.BusinessLogic.Models.CommentInfo.CreateNameForContentNode() +268
       uBlogsy.BusinessLogic.Models.CommentInfo..ctor(String name, String email, String website, String message, Boolean isAuthor, String publicDomain, DateTime created) +181
       uBlogsy.Web.usercontrols.uBlogsy.Contact.btnSubmit_Click(Object sender, EventArgs e) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy HG\uBlogsy\uBlogsy\usercontrols\uBlogsy\Contact.ascx.cs:178
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +153
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3706
    


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

    I have tried debugging this error myself, looking for some strange configuration or some sort of bad code in my end, but no matter what I try, I can't get rid of the message.
    It occurs every time I try to submit a comment. Even on a clean install with no modifications.
    As a sidenode, the blog is located in level 2 of the node tree and theres a custom membershipprovider (I have tried to disable the provider and use the default to no avail.)
    Any idea how or why it happens?
  • Nick Frederiksen 18 posts 77 karma points
    Oct 26, 2012 @ 11:00
    Nick Frederiksen
    0

    Found problem:

    When installing uBlogsy on a site with a custom membership provider, the uBlogsySubscriber-member type is created with no properties.

    After disabling the membership provider and returned to umbracos, I was able to create those properties, and after I reenabled the custom provider I was able to submit comments again.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Nov 01, 2012 @ 00:41
    Anthony Dang
    0

    I havent come across this issue before. Do you know why it occurs?

     

     

Please Sign in or register to post replies

Write your reply to:

Draft