Copied to clipboard

Flag this post as spam?

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


  • Carrie 20 posts 42 karma points
    Dec 04, 2014 @ 21:35
    Carrie
    0

    Errors submitting comment

    Umbraco 6.2.1 and ublogsy Webforms 3.0.2

    We are having the following issues when trying to submit a comment:

    The first comment we ever posted saved fine. We were able to go to the backend and approve the comment properly. When we tried to submit a second comment, we get the error message below. If I delete the Member that was created from the first comment, we're able to submit a single comment again..

    Another issue is that the email notification never gets sent. I believe we have our mail settings set up properly in the web.config since we're sending email from other parts of the site.

    <smtp>
    <network host="xxOURMAILSERVERxx" userName="username" password="password" />
    </smtp>

    Please let me know what else I can provide to help you help me!

     

    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.]
       uCommentsy.BusinessLogic.Models.CommentInfo.<CreateNameForContentNode>b__2(Member x) in d:\_PROJECTS\Personal\uCommentsy\Source\uCommentsy.BusinessLogic\Models\CommentInfo.cs:141
       System.Linq.Enumerable.Count(IEnumerable`1 source, Func`2 predicate) +151
       uCommentsy.BusinessLogic.Models.CommentInfo.CreateNameForContentNode() in d:\_PROJECTS\Personal\uCommentsy\Source\uCommentsy.BusinessLogic\Models\CommentInfo.cs:139
       uCommentsy.BusinessLogic.Models.CommentInfo..ctor(String name, String email, String website, String message, Boolean isAuthor, String publicDomain, DateTime created) in d:\_PROJECTS\Personal\uCommentsy\Source\uCommentsy.BusinessLogic\Models\CommentInfo.cs:46
       uBlogsy.WebForms.usercontrols.uCommentsy.Contact.btnSubmit_Click(Object sender, EventArgs e) in C:\inetpub\wwwroot\__UMBRACO\anthonydotnet-ublogsy-07e0c9730a0b\anthonydotnet-ublogsy-07e0c9730a0b\Source\uBlogsy.WebForms\usercontrols\uCommentsy\Contact.ascx.cs:167
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9633194
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +103
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724
  • Carrie 20 posts 42 karma points
    Jan 02, 2015 @ 17:35
    Carrie
    1

    Well in case anyone else experiences this, what I did was download the source for uCommentsy, change int count = 0 so it didn't hit the part where it tries to get all the members (line 139 - 141), compiled and used that in my site. Seems to be working after that.

    // no member found,
    // get all members with this name
    //int count = Member.GetAllAsList()
    //                .Where(x => x.ContentType.Alias == ConfigReader.Instance.GetMemberTypeAlias())
    //                .Count(x => x.getProperty("uCommentsyMemberName").Value.ToString() == this.Name);

    int count = 0;

  • vinod kumar singh 2 posts 22 karma points
    Jan 19, 2015 @ 15:02
    vinod kumar singh
    0

    Problem after submitting comment

    I am using umbraco 6.2.4 with ublogsy 3.1 and ucommentsy 1.1 .

    While posting comment at first it works but at socond time it throw an error which is given below but after the deleting the registered mail id from umbraco admin panel at memeber section it works again but for one time only. 

    Error is given below----------------------

    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.]
       uCommentsy.BusinessLogic.Models.CommentInfo.<CreateNameForContentNode>b__2(Member x) in d:\_PROJECTS\Personal\uCommentsy\uCommentsyForUmb6\Source\uCommentsy.BusinessLogic\Models\CommentInfo.cs:141
       System.Linq.Enumerable.Count(IEnumerable`1 source, Func`2 predicate) +151
       uCommentsy.BusinessLogic.Models.CommentInfo.CreateNameForContentNode() in d:\_PROJECTS\Personal\uCommentsy\uCommentsyForUmb6\Source\uCommentsy.BusinessLogic\Models\CommentInfo.cs:139
       uCommentsy.BusinessLogic.Models.CommentInfo..ctor(String name, String email, String website, String message, Boolean isAuthor, String publicDomain, DateTime created) in d:\_PROJECTS\Personal\uCommentsy\uCommentsyForUmb6\Source\uCommentsy.BusinessLogic\Models\CommentInfo.cs:46
       uCommentsy.Mvc.Parts.Controllers.Partials.Forms.uCommentsyContactFormSurfaceController.Post(ContactFormModel model) in d:\_PROJECTS\Personal\uCommentsy\uCommentsyForUmb6\Source\uCommentsy.Mvc.Parts\Controllers\Partials\Forms\uCommentsyContactFormSurfaceController.cs:90
       lambda_method(Closure , ControllerBase , Object[] ) +180
       System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
       System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +211
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
       System.Web.Mvc.Async.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41() +28
       System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +10
       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +57
       System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +48
       System.Web.Mvc.Async.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33() +57
       System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +223
       System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +223
       System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +223
       System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +223
       System.Web.Mvc.Async.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult) +10
       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +57
       System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +48
       System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +24
       System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +102
       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +57
       System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +43
       System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +14
       System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23
       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
       System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +57
       System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23
       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
       System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +47
       System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
       System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +25
       System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23
       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
       System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +47
       System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9514928
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
    
  • suzyb 474 posts 932 karma points
    May 12, 2015 @ 22:39
    suzyb
    0

    I also had this issue with uBlogsy. After investigating I found it was due to missing member properties. It may be worth anyone else having this issue checking the to see if the uCommentsy related member type is set up correctly.

    There should be a couple of tabs added to the uCommentsySubscriber member type with several properties during installation. A Subscriptions tab is added which should have a Subscriptions (uCommentsyMemberSubscriptions) property and a Subscriber Info tab with the properties Name (uCommentsyMemberName), Website (uCommentsyMemberWebsite) and Name for Comment Url (uCommentsyMemberCommentUrlName) should be added. On my installation the tabs had been added but the properties were not which is why an error was being thrown when the uCommentsyMemberName property was reference in the code snippet Carrie posted.

    I didn't get any error during installation and there doesn't seem to be any errors in the log indicating why the properties weren't created. I also upgraded both uBlogsy and uCommentsy to the latest versions and the properties weren't added then either.

    tl;dr if you're getting this error check the Subscriptions and Subscriber Info tabs of the uCommentsySubscriber member type have properties.

Please Sign in or register to post replies

Write your reply to:

Draft