Public Shared Function GetUser(ByVal portalId As Integer, ByVal userId As Integer, ByVal isHydrated As Boolean) As UserInfo
Return UserController.memberProvider.GetUser(portalId, userId, isHydrated)
End Function
I just had some confusing about the question above.
The property isHydrated is how to apply the function and make some side effects?
For example, I develope my module with the function GetUser, setting the isHydrated = true. the error will occure as follows, can you give any advices to solve the problem:
DotNetNuke.Services.Exceptions.ModuleLoadException: PropertyDefinitionId ---> System.IndexOutOfRangeException: PropertyDefinitionId at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName) at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) at System.Data.SqlClient.SqlDataReader.get_Item(String name) at DotNetNuke.Security.Profile.DNNProfileProvider.GetUserProfile(UserInfo& user) at DotNetNuke.Entities.Users.UserInfo.get_Profile() at DotNetNuke.Entities.Users.UserInfo.set_FirstName(String Value) at DotNetNuke.Security.Membership.AspNetMembershipProvider.FillUserInfo(Int32 portalId, IDataReader dr, Boolean isHydrated, Boolean CheckForOpenDataReader) at DotNetNuke.Security.Membership.AspNetMembershipProvider.GetUser(Int32 portalId, Int32 userId, Boolean isHydrated) at DotNetNuke.Entities.Users.UserController.GetUser(Int32 portalId, Int32 userId, Boolean isHydrated) at DotNetNuke.Modules.Blog.EntryInfo.get_NickName() at DotNetNuke.Modules.Blog.ViewBlog.lstBlogView_ItemDataBound(Object sender, DataListItemEventArgs e) at System.Web.UI.WebControls.DataList.OnItemDataBound(DataListItemEventArgs e) at System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.BaseDataList.DataBind() at DotNetNuke.Modules.Blog.ViewBlog.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---