Server Error in '/' Application.

A null MembershipUser is not valid to instantiate a new User

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.Exception: A null MembershipUser is not valid to instantiate a new User

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:


[Exception: A null MembershipUser is not valid to instantiate a new User]
   CommunityServer.Users.AddMembershipDataToUser(User u) +64
   CommunityServer.Components.CommonDataProvider.cs_PopulateUserFromIDataReader(IDataReader dr, Boolean isEditable) +21
   CommunityServer.Data.SqlCommonDataProvider.GetUser(Int32 userID, String username, Boolean isOnline, Boolean isEditable, String lastAction) +409
   CommunityServer.Users.GetUserFromDataProvider(Int32 userID, String username, Boolean isOnline, Boolean isEditable, String lastAction) +39
   CommunityServer.Users.GetUser(Int32 userID, String username, Boolean isOnline, Boolean isCacheable, Boolean fromCache) +750
   CommunityServer.Components.Post.get_User() +18
   CommunityServer.Blogs.Components.WeblogPost.get_DisplayName() +69

[TargetInvocationException: Property accessor 'DisplayName' on object 'CommunityServer.Blogs.Components.WeblogPost' threw the following exception:'A null MembershipUser is not valid to instantiate a new User']
   System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) +370
   System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +77
   CommunityServer.Controls.ObjectDataBase.GetPropertyValue(String property) +63
   CommunityServer.Blogs.Controls.WeblogPostData.GetPropertyValue(String property) +538
   CommunityServer.Controls.ObjectDataBase.BindDefaultContent(Control control, IDataItemContainer dataItemContainer) +89
   CommunityServer.Controls.WrappedControlItemTemplate.WrappedControlItemTemplate_DataBinding(Object sender, EventArgs e) +58
   System.Web.UI.Control.OnDataBinding(EventArgs e) +99
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +206
   System.Web.UI.Control.DataBind() +12
   System.Web.UI.Control.DataBindChildren() +204
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
   System.Web.UI.Control.DataBind() +12
   System.Web.UI.Control.DataBindChildren() +204
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
   System.Web.UI.Control.DataBind() +12
   System.Web.UI.Control.DataBindChildren() +204
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
   System.Web.UI.Control.DataBind() +12
   CommunityServer.Controls.WrappedContentBase.DataBind() +101
   CommunityServer.Controls.ObjectDataBase.DataBind() +37
   CommunityServer.Controls.WrappedContentBase.OnPreRender(EventArgs e) +102
   System.Web.UI.Control.PreRenderRecursiveInternal() +86
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433