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.
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
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);
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.
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.
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:
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;
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:
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.
is working on a reply...