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.)
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.
NullReferenceException on comment submission
Server Error in '/' Application.
Object reference not set to an instance of an object.
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:
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.
I havent come across this issue before. Do you know why it occurs?
is working on a reply...